1、不要锁定;
2、在prepareEdit加入代码
If e.Row.DataRow.RowState <> DataRowState.Added Then e.Cancel = TrueEnd If