private void TableView_InvalidRowException(object sender, DevExpress.Xpf.Grid.InvalidRowExceptionEventArgs e) { if (e.RowHandle == DevExpress.Xpf.Grid.GridControl.NewItemRowHandle) { e.ErrorText = "请输入插入单元名称!"; e.WindowCaption = "未输入单元名称"; } }
private void tblView_InvalidRowException(object sender, DevExpress.Xpf.Grid.InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.Xpf.Grid.ExceptionMode.NoAction; }