this.gridRecordNavigationControl1.NavigationBar.ButtonBarChild.Buttons[0].Enabled = false;
this.gridRecordNavigationControl1.NavigationBar.ButtonBarChild.Buttons[1].Enabled = false;
this.gridRecordNavigationControl1.NavigationBar.Invalidate();
As far as a slpitter covering a control, are you talking about a splitter outside the recnavcontrol? If so, one thing you could do is to place a panel where you have the recnavcontrol, set its DockPadding to add some space around the edge next to the splitter and then set the recnav control into the panle with the recnav Dock property set to fill. Then you can control the spacing using the panel.DockPadding property.
>this.gridRecordNavigationControl1.NavigationBar.ButtonBarChild.Buttons[0].Enabled = false;
>this.gridRecordNavigationControl1.NavigationBar.ButtonBarChild.Buttons[1].Enabled = false;
>this.gridRecordNavigationControl1.NavigationBar.Invalidate();
>
>
>As far as a slpitter covering a control, are you talking about a splitter outside the recnavcontrol? If so, one thing you could do is to place a panel where you have the recnavcontrol, set its DockPadding to add some space around the edge next to the splitter and then set the recnav control into the panle with the recnav Dock property set to fill. Then you can control the spacing using the panel.DockPadding property.
0 First
1 Previous
2 Syncfusion.Windows.Forms.InternalButton
3 null
4 Syncfusion.Windows.Forms.InternalButton
5 Next
6 Last
7 AddNew
Here is the code used to generate this list.
Syncfusion.Windows.Forms.InternalButton button; for(int i = 0; i < this.gridRecordNavigationControl1.NavigationBar.ButtonBarChild.Buttons.GetLength(0); ++i) { button = this.gridRecordNavigationControl1.NavigationBar.ButtonBarChild.Buttons[i]; if(button == null) Console.WriteLine("{0} null", i); else Console.WriteLine("{0} {1}", i, button.ToString()); }