How do I create a Master Detail Form with Datagrid.

daPoet

Member
Joined
Jul 22, 2008
Messages
23
Programming Experience
Beginner
How do I create a Master Detail Form with Datagrid.

I want one datagrid to show the master details and when that row is selected,
it expands to show corresponding information from the Detail source..

How can I achieve this.

Thanks
 
Not quite

Thanks, but I know how to do that much

What I need is a Datagrid as the Master and another Datagrid that is displayed within the first,

So, when a row is selected in the master table/datagrid, it expands and shows another datagrid inside that with corresponding records from another table.
 
you might be looking at a custom control then, if DataGrid (not DataGridvIew) cannot do this.. DGV is a lightweight component, DG is much heavier but i dimly recall it having the functionality you ask for
 
Thanks for the effort, I've started to use panels with other datagrids inside them to mimic the behaviour

So what Im doing now is Expanding the row of the parent grid and then making visible and placing the child grid within that expanded row... It's not literally inside it, it just appears that way...


When Im done I'll post images

Thanks still though.
 
Back
Top