我有这个DevExpress GridContro
l ,我添加了两个列,一个包含 a repositoryItemCheckEdit
,另一个包含正常的string
类别描述。
现在,我repositoryItemCheckEdit
在属性部分创建了一个未绑定的布尔值,并添加了以truegridView1_CustomUnboundColumnData
触发的事件,但当我单击复选框时,它永远不会为真。谁能解释这是为什么?谢谢e.IsGetData
e.IsSetData
private void gridView1_CustomUnboundColumnData(object sender, CustomColumnDataEventArgs e)
{
if (e.IsGetData)
{
string itemKey = ((CategoryTable)(gridControl1.ViewCollection[0]).GetRow(e.RowHandle)).Category;
if (AddressDoc == itemKey) e.Value = true
else e.Value = false;
}
if (e.IsSetData)
AddressDoc = ((CategoryTable)(gridControl1.ViewCollection[0]).GetRow(e.RowHandle)).Category;
}