DevPress GridControl添加按钮列
2011-04-02 14:37
405 查看
把列的ColumnEdit属性设置为RepositoryItemButtonEdit
把TextEditStyle属性设置为HideTextEditor;
把Buttons的Kind属性设置为Glyph; 把Button的Caption用于设置文字
把Buttons的TextOption的Appearance的HAlignment属性设置为Near;
如果要用到事件的话,还要注册事件。。。
在GridControl的设计器中Repository页中的In-place Editor Repository项中
在右边的Repository栏中找到你的ButtonEdit,选它的事件属性页,注册它的ButtonClick事件即可
我已经测试过了
把TextEditStyle属性设置为HideTextEditor;
把Buttons的Kind属性设置为Glyph; 把Button的Caption用于设置文字
把Buttons的TextOption的Appearance的HAlignment属性设置为Near;
如果要用到事件的话,还要注册事件。。。
在GridControl的设计器中Repository页中的In-place Editor Repository项中
在右边的Repository栏中找到你的ButtonEdit,选它的事件属性页,注册它的ButtonClick事件即可
我已经测试过了
相关文章推荐
- DevPress GridControl添加按钮列
- DevPress GridControl添加按钮列
- DevPress GridControl添加按钮列
- devpress GridControl控件绑定RepositoryItemImageComboBox 作为下拉框使用 zt
- 在Dev GridControl中添加颜色可变的ProgressBar z
- Devpress Gridcontrol中动态绑定数据库后如何设置列名
- Devpress.XtraGrid.GridControl 笔记
- GridControl控件添加按钮列及在按钮Click事件中得到行数据 zt
- Devpress.XtraGrid.GridControl.GridView 属性
- 在Dev的gridControl中为每一行添加一个序号
- dev gridcontrol控件手动添加一行数据
- Devpress.XtraGrid.GridControl.GridView 属性
- Devpress.XtraGrid.GridControl笔记
- Devpress.XtraGrid.GridControl 笔记
- Devpress.XtraGrid.GridControl.GridView 属性
- gridcontrol添加按钮列
- DEV GridControl添加hyperlink
- DEV GridControl 小结(持续添加)
- Devpress.XtraGrid.GridControl.GridView 属性
- [DevExpress]在Dev GridControl中添加颜色可变的ProgressBar z