Q:DevExpress.XtraGrid中去掉表头的"Drag a column header here to group by that column"
A:属性—OptionsView—ShowGroupPanel,设置为False
Q:DevExpress.XtraGrid表头不显示过滤框
A:属性—OptionsView—ShowAutoFilterRow=false(如果无效,在form界面上点击属性—ShowAutoFilterRow=false)
Q:DevExpress.XtraGrid表头显示过滤框
A:属性—OptionsView—ShowAutoFilterRow=true
Q:DevExpress.XtraGrid表格奇数和偶数行染色
A:属性—OptionsView—EnableAppearanceEvenRow=true
属性—OptionsView—EnableAppearanceOddRow=true
Q:DevExpress.XtraGrid表格奇数和偶数行属性设置
A:属性—Appearance—EvenRow
属性—Appearance—OddRow
Q:DevExpress.XtraGrid表格只读、是否允许编辑
A:OptionsColumn—AllowEdit = False, ReadOnly = True
Q:CheckedListBox候选项目点击两次才能选中
A:属性—CheckOnClick,设置为true
Q:GridView中日期格式的设置
A:属性—DisplayFormat,将Format设置为DateTime,将FormatString设置为yyyy-MM-dd HH:mm
Q:去掉LayoutControlGroup四周的边框
A:属性—EnableIndentsWithoutBorders设置为False
Q:GridView根据内容自动调整列宽
A:添加代码 this.gridView1.BestFitColumns();
Q:GridView表格左侧的序号宽度设置
A:属性—IndicatorWidth
Q:GridView表格左侧的序号不显示
A:属性—OptionsView—ShowIndicator = False
DevExpress.XtraGrid常用设置
最新推荐文章于 2020-12-09 17:36:38 发布