在本例中隐藏内嵌导航器中的两个按钮: AppendRemove

C#CopyCode image复制代码
    ControlNavigator navigator = gridControl1.EmbeddedNavigator;
    navigator.Buttons.BeginUpdate();
    try {
        navigator.Buttons.Append.Visible = false;
        navigator.Buttons.Remove.Visible = false;
    }
    finally {
        navigator.Buttons.EndUpdate();
    }

Visual BasicCopyCode image复制代码
    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