private void mapSrcEventGw_ValidateRow(object sender, DevExpress.XtraGrid.Views.Base.ValidateRowEventArgs e) { if (DetailView.GetRowCellValue(e.RowHandle, colPROVYS_NAME).ToString() == "") { e.ErrorText = "Пустая строка не может быть сохранена."; e.Valid = false; } }