Tushar,
This is actually very easy to do. Basically, you have to set up a
relation between the table that is the parent, and the table that is the
child. Once you do that, you should be able to see the "+" which will allow
you to expand the relationship (based on the current row), and see the
relationships into the other child rows (which you click on and then it will
show you those rows).
You might want to consider two data grids, where the parent grid is
bound on the parent table, and the other is bound to the relation (that way,
only child rows are shown).
Look at the DataRelation class, as it is what you will need to relate
the two tables.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"TusharP" <tu**********@solversa.com> wrote in message
news:ul**************@TK2MSFTNGP14.phx.gbl...
Hi Friends,
My requirement are as follow.....
1) First DataGrid display all row of one table, with this one additional
column having +/- control like tree.
2) When user click on +/- control DataGrid row must expand & show rows of
other table (filtered row based on clicked row values). I thing we need
embedded datagrid to show expanded row.
Is am I right?
Is it possible to embedd datagrid as row in other datagrid?
Need Urgent Help.
Thanking You
Tushar P.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17-Sep-04