top of datagrid is hidden by binding navigator

G

Guest

I have the docking property of a datagrid set to fill and the docking
property of the binding navigator set to top. At runtime, the top of the
datagrid is hidden by the tool bar as opposed to stopping at the bottom
margin of the binding navigator as expected. Are there properties i can set
to get this behave as requested above?

Thanks,
 
C

ClayB

Make sure the DataGrid (docked Fill) is added to your form's Controls
collection before the control that is docked Top.

this.Controls.Add(this.dataGrid1); //dock=Fill
this.Controls.Add(this.navControl1); //dock=top

=====================
Clay Burch
Syncfusion, Inc.
 

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