`
yuanlanxiaup
  • 浏览: 860000 次
文章分类
社区版块
存档分类
最新评论

DevExpress控件 在 winform 上的一些控件的常用属性设置

 
阅读更多

1, navBarControl 修改背景色

右键 --> Run Designer --> View Choose --> AdvExploreBarView

Appearances -- > Background ( BackColor 和 BackColor2 )

2, SimpleButton 修改背景色

ButtonStyle --> 非 default

3, GridControl 设置交替行的背景色

Appearance --> EvenRow --> 相关 color 设置

AppearanceView --> Enable--EvenRowColor

4, 设置 grid Header居中

Appearance -> HeaderPanel --> HAlignment = center

5, grid 自动增加新行

OptionsBehavior --> AllowAddRows=true

OptionsView --> NewItemRowPosition = bottom

6, gridview 的相关事情 keyDown,mouseDown,focusedRowChanged

7. gridview 列宽根据内容自动调整

gridview --> OptionsView --> ColumnsAutoWidth=false

初始化设置 gridControl.datasource 后,设置 gridView.BestFitColumns

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics