DevExpress GridView在只读状态下如何隐藏表格的按钮EditorShowMode|ShowButtonMode
作者:C/S框架网|www.cscode.ne  发布日期:2021-03-02 13:50:17
  DevExpress GridView在只读状态下如何隐藏表格的按钮EditorShowMode|ShowButtonMode


贴图图片-showbuttonmode

代码参考:


C# Code:

gridView.OptionsBehavior.EditorShowMode = DevExpress.Utils.EditorShowMode.Default;
gridView.OptionsView.ShowButtonMode
= DevExpress.XtraGrid.Views.Base.ShowButtonModeEnum.Default;


//来源:C/S框架网 | www.csframework.com | QQ:23404761




其他参数设置参考:


C# Code:

gridView.OptionsSelection.EnableAppearanceFocusedRow = true;
gridView.OptionsSelection.EnableAppearanceFocusedCell
= false;
gridView.OptionsView.ShowFooter
= true;
gridView.OptionsView.ShowGroupPanel
= false;
gridView.OptionsView.ColumnAutoWidth
= false;
gridView.ColumnPanelRowHeight
= 25;
gridView.RowHeight
= 25;
gridView.OptionsBehavior.EditorShowMode
= DevExpress.Utils.EditorShowMode.Default;
gridView.OptionsView.ShowButtonMode
= DevExpress.XtraGrid.Views.Base.ShowButtonModeEnum.Default;

//来源:C/S框架网 | www.csframework.com | QQ:23404761



上一篇 下一篇