Default view in parent-child datagrid

B

Brian Bischof

I have a parent-child datagrid working fine with three datasets connected.
My question is how to make it open to the first level automatically. Right
now when the form opens it just shows a blank datagrid with a plus sign. I
click the plus sign and then it shows me all three levels to choose from. I
then click on the top level and it shows me the rows. How can I show these
top-level rows by default without making the user do all that clicking?

Thanks.
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi Brian,

Use the DataGrid's Expand method to expand the top-level rows
programmatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top