this.repositoryItemCheckEdit1.QueryCheckStateByValue += new DevExpress.XtraEditors.Controls.QueryCheckStateByValueEventHandler(re3_QueryCheckStateByValue);

//判断表格的数据勾选复选框

void re3_QueryCheckStateByValue(object sender, DevExpress.XtraEditors.Controls.QueryCheckStateByValueEventArgs e)
{
string val = "";
if (e.Value != null)
{
val = e.Value.ToString();
}
else
{
val = "False";//默认为选不中
}
switch (val)
{
case "True":
e.CheckState = CheckState.Checked;
break;
case "1":
e.CheckState = CheckState.Checked;
break;
case "0":
e.CheckState = CheckState.Unchecked;
break;
case "False":
e.CheckState = CheckState.Unchecked;
break;
}
e.Handled = true;
}

相关文章:

  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-09-25
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案