在本例中隐藏内嵌导航器中的两个按钮: Append
和 Remove。
C# | 复制代码 |
---|
ControlNavigator navigator = gridControl1.EmbeddedNavigator;
navigator.Buttons.BeginUpdate();
try {
navigator.Buttons.Append.Visible = false;
navigator.Buttons.Remove.Visible = false;
}
finally {
navigator.Buttons.EndUpdate();
}
|
Visual Basic | 复制代码 |
---|
Dim navigator As ControlNavigator = GridControl1.EmbeddedNavigator
navigator.Buttons.BeginUpdate()
Try
navigator.Buttons.Append.Visible = False
navigator.Buttons.Remove.Visible = False
Finally
navigator.Buttons.EndUpdate()
End Try
|