Viewing child rows in the same datagrid

prem

Newcomer
Joined
May 2, 2003
Messages
4
In my application I have multiple related tables in a datagrid. When i click on a row node to expand and view child rows, the datagrid by default provides a link to another datagrid in which the child rows are displayed.

Is it possible to view the child rows in the same datagrid? I want to be able to expand a row to view its child rows while pushing the other rows down the datagrid. Sort of in the way that tasks are handled in Microsoft Project.

Would be much appreciated if anyone has any info on this.
 
I don't *think* you can with the microsoft grid. You'll probably have to go to a third-party grid control for that. I'm using Infragistics UltraWinGrid which supports it.
 
quwiltw is right, the basic .NET DataGrid does not support it. I thought I heard of a company that wrote a new version of the .NET DataGrid (all in .NET code) that allowed this, but I don't remember the company or the link.

I think your best bet might be to go with a 3rd party control. If you want to use two separate grids (or just stick with the basic DataGrid), check out this superb FAQ.

-Nerseus
 
Back
Top