top of datagrid is hidden by binding navigator

  • Thread starter Thread starter Guest
  • Start date Start date
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,
 
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.
 
Back
Top