就写在 CurrentCellChanged事件中就ok了; //锁定的行,这个存放了要锁定的行数据。 ; { //锁定表格行的算法 this.dataGrid.ReadOnly = false; { { this.dataGrid.ReadOnly = true; break; } } } 相关文章: 2022-12-23 2021-05-07 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2021-07-01