C# devExpress BandedGridView属性 备忘

2020-09-11 14:49:49 浏览数 (1)

代码语言:javascript复制
BandedGridView属性备忘
代码语言:javascript复制
StringBuilder sb = new StringBuilder();
            DevExpress.XtraGrid.Views.BandedGrid.BandedGridView view = bandedGridView1 as DevExpress.XtraGrid.Views.BandedGrid.BandedGridView;
            List<GridBand> gridBand = new List<GridBand>();
            hash.Clear();
            view.Bands.Clear();
            //修改附加选
            view.OptionsView.ShowColumnHeaders = false;                         //因为有Band列了,所以把ColumnHeader隐藏                                                                                                     //如果没必要分组,就把它去           view.OptionsView.EnableAppearanceEvenRow = false;                   //是否启用偶数行外观
            view.OptionsView.EnableAppearanceOddRow = true;                     //是否启用奇数行外观
            view.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never;   //是否显示过滤面板
            view.OptionsCustomization.AllowColumnMoving = false;                //是否允许移动列
            view.OptionsCustomization.AllowColumnResizing = false;              //是否允许调整列宽
            view.OptionsCustomization.AllowGroup = false;                       //是否允许分组
            view.OptionsCustomization.AllowFilter = false;                      //是否允许过滤
            view.OptionsCustomization.AllowSort = true;                         //是否允许排序
            view.OptionsSelection.EnableAppearanceFocusedCell = true;           //???                             //是否允许用户编辑单元格

0 人点赞