View child records in datagrid
-
I'm working on a project where i have a parent child relation between two tables. just straight forward. I use the Win form DataGrid in .NET c# to view the data. The relation is made and a + appears before the key in my datagrid. When i click that + i can click on a label which brings me to the child records. The parent row is then showed as a header. What i would want is when i click the + that child records appear under the parent record in the current datagrid. Simular the way access shows related records. Can this be done with the datagrid in a window application ??
-
I'm working on a project where i have a parent child relation between two tables. just straight forward. I use the Win form DataGrid in .NET c# to view the data. The relation is made and a + appears before the key in my datagrid. When i click that + i can click on a label which brings me to the child records. The parent row is then showed as a header. What i would want is when i click the + that child records appear under the parent record in the current datagrid. Simular the way access shows related records. Can this be done with the datagrid in a window application ??
I can suggest you to use the Infragistics NetAdvantage http://www.infragistics.com/products/NetAdvantage/WebForms/Default.aspx[^], otherwise you have to code too much. It has extremely wonderful datagrid. My customers like it I think you will like it too