I presume you're talking about a Windows Form application?
That's one of the features that didn't make it into the DataGridView control. There are several work arounds... the easiest is to use two controls. Other more complex examples are available to force this behavior in a single DataGridView control.
....or, a much simplier approach would be to use the older DataGrid control. It can handle a master/child relationship without any coding at all
Main Topics
Browse All Topics





by: hamidovtPosted on 2008-02-06 at 07:38:56ID: 20832818
If you details are collection, you can display bind the to the datasource of a web control within a TemplateField. Below is an example code. You can seet the complete solution on http://msdn2.microsoft.com /en-us/lib rary/aa581 776.aspx
For + / - you will have to do something with JScript....
Select allOpen in new window