随笔分类 -  Dev

Developer Express v2009 vol 2
Dev gridControl添加多选框
摘要:超级超级简单。1、在gridControl添加一列(Columns),写上FieldName 如“check”。2、在绑定数据的时候添加一行如下代码: DataSet.Tables[0].Columns.Add("check", System.Type.GetType("System.Boolean"));结果就OK了。。。点击测试check按钮响应如下事件(获取被check的数据)private void buttonX3_Click(object sender, EventArgs e) { string value=""; st 阅读全文
posted @ 2011-04-20 13:17 嘿^ Lynn 阅读(1241) 评论(0) 推荐(0)
DevPress GridControl添加按钮列
摘要:把列的ColumnEdit属性设置为RepositoryItemButtonEdit 把TextEditStyle属性设置为HideTextEditor; 把Buttons的Kind属性设置为Glyph; 把Button的Caption用于设置文字 把Buttons的TextOption的Appearance的HAlignment属性设置为Near; 如果要用到事件的话,还要注册事件。。。 在GridControl的设计器中Repository页中的In-place Editor Repository项中 在右边的Repository栏中找到你的ButtonEdit,选它的事件属性页,注册它的 阅读全文
posted @ 2011-04-14 13:56 嘿^ Lynn 阅读(555) 评论(1) 推荐(0)