回复 1楼q5213023的帖子
谢谢您的反馈。
使用BeforeEdit事件,代码参考:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.c1FlexGrid1.BeforeEdit += c1FlexGrid1_BeforeEdit;
- }
- void c1FlexGrid1_BeforeEdit(object sender, C1.Win.C1FlexGrid.RowColEventArgs e)
- {
- if (e.Row == 1 && e.Col == 1)
- {
- e.Cancel = true;
- }
- }
复制代码 |