NetBlog主题

DevExpress gridControl应用
DevExpress

DevExpress gridControl应用

6326

1、在GirdView添加选择选择框,如下图//获取CheckBox为选中状态的数据 2024-04-08 更新int[] si = this.gridView1.GetSelectedRows()//获取所有选中状态的数据bool b = this.gridView1.IsRowSelected(i);//获取某行是否为选中状态,i为某行的索引,this.gridView1.Select…

DevExpress gridControl Column设置成按钮
DevExpress

DevExpress gridControl Column设置成按钮

254

效果图设置步骤按钮的样式也可以设置ColumEdit--ButtonsStyle的样式给按钮添加按钮事件//点击事件代码private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e){ int i = this.gridView1.Focuse…