private void gridView1_ShowingEditor(object sender, CancelEventArgs e)
{
DataRow row = this.gridView1.GetDataRow(this.gridView1.FocusedRowHandle);
if (row != null)
{
if (row["STATE"].ToString() == "发布")//当STATE字段为发布的时候
{
e.Cancel = true;//该行不可编辑
}
}
}
gridControl符合条件的某行不可操作
最新推荐文章于 2023-04-06 14:33:28 发布