datagridview help

naresh

Active member
Joined
Jul 4, 2006
Messages
38
Programming Experience
1-3
The image is not inserted so i will try to explain the maximum.
datagrid
________________________________________________________
| column 1 | column2 | column3
| _______________________________________________________
| +data1 | ring Address | ring phone no|
| +data2
| -data3
| subdata1 | ringName | ring type |
| subdata2 | ringName | ring type |
| +data4 | ring Address | ring Phone no|
|_______________________________________________________

I want the grid to display like this First all the details should come in the grid and when i select the data1 or data2 again as shown in the figure subdata should appear. Is it possible with the datagridview in .net2005 If yes please help me

Thanks in Advance
Naresh
 
Last edited:
No it is not possible with the DataGridView, which is quite disappointing. The DataGrid can navigate relationships within the one grid but it can still only display data from one table at a time. Some third-party grids can show multiple related tables in the one grid but I doubt that you'll find a free one.

You could actually create the appearance of the DataGridView displaying related tables in the one grid because it has been created in such a way that you can embed any control you like in it. That measn that you could embed other DataGridViews. It would be a tricky feat to accomplish but it is eminently possible.
 
Back
Top