标签:添加 event color ons checkbox vbo set bsp select
添加GridView的RowCellClick事件,代码如下
private void gvBoxMails_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { DevExpress.XtraGrid.Views.Grid.GridView _gridView = (DevExpress.XtraGrid.Views.Grid.GridView)sender; DevExpress.XtraGrid.Columns.GridColumn _col=e.Column; if (_col.CustomizationSearchCaption.Equals("Selection")) { bool _value = (bool)_gridView.GetRowCellValue(e.RowHandle, _col); _gridView.SetRowCellValue(e.RowHandle, _col, !_value); } }
【DevExpress】GridView的RowClick事件禁用Checkbox选择的解决办法
标签:添加 event color ons checkbox vbo set bsp select
原文地址:https://www.cnblogs.com/qq552048250/p/9690559.html