汇总一下DEV控件GridControl的一些常规使用
一、GridControl属性说明
二、DEV控件系列-GridView常用方法
GridControl属性说明
属性名 | 说明 | 使用方式 |
---|
DataSource | 数据源 | this.gridControl1.DataSource=list ; this.gridControl1.RefreshDataSource(); |
Dock | 控件停靠 | this.groupControl1.Dock = DockStyle.Fill; |
GridView属性说明
属性名 | 说明 | 使用方式 |
---|
OptionsFind.AlwaysVisible | 显示检索框 | this.gridView1.OptionsFind.AlwaysVisible = true; |
OptionsFind.ShowClearButton | 显示清除按钮 | this.gridView1.OptionsFind.ShowClearButton = false; |
OptionsView.ColumnAutoWidth | 列宽自适应 | this.gridView1.OptionsView.ColumnAutoWidth = false; |
OptionsView.ShowGroupPanel | 显示分组页 | this.gridView1.OptionsView.ShowGroupPanel = false; |