By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,917 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,917 IT Pros & Developers. It's quick & easy.

How to Embedded one Window Form datagrid as row of other datagrid

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.