代码改变世界

想办法处理gridControl行中的checkedit事件

2013-06-01 12:06  hongjiumu  阅读(2108)  评论(1编辑  收藏  举报
想办法处理gridControl行中的checkedit事件:
private
void Reorganize() { GridControl gridControl = gridControl1; DevExpress.XtraGrid.Columns.GridColumn checkColumn = ((ColumnView)gridControl.Views[0]).Columns["Checked"]; RepositoryItemCheckEdit et = new RepositoryItemCheckEdit(); checkColumn.ColumnEdit = et; et.CheckedChanged += (s, a) => { foreach(System.Data.DataRow dataRow in _vCurrentDataTable.Rows) { dataRow["Checked"] = false; } //Console.WriteLine("{0}",gridControl.Views.Count); //MessageBox.Show(a.ToString()); }; }