Master/detail form
How can I have a master/detail layout on a win form?
Thanks
Regards
How can I have a master/detail layout on a win form?
Thanks
Regards
1. If its ADO, lookup "How to bind controls"
2. If its the design, then take a look at the DataGrid...
cheers,
Paul June A. Domag
Regards
Yahya
Yahya wrote:
Hi How can I have a master/detail layout on a win form?
Thanks
Regards
First, your data set needs to have a DataRelation set between two of the tables in the set. This is what allows the master/child relationship to be established.
Once you have that, you can place two grids on your form, and then bind one grid to the parent table. The child grid, you attach to the relation, not to the child table. This is what allows only child elements to be displayed.
Hope this helps.
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com