private void DgvCamposVisibles_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) { DgvCamposVisibles.PostEditor(); if (DgvCamposVisibles.FocusedColumn.FieldName == "Tamaño") { String v = DgvCamposVisibles.GetRowCellValue(DgvCamposVisibles.FocusedRowHandle, DgvCamposVisibles.Columns[2]).ToString(); if (String.IsNullOrEmpty(v)) { v = "0"; } int t = Convert.ToInt32(v); if (t <= 0) { // XtraMessageBox.Show("El tamaño debe ser mayor que 0", GLReferences.Properties.Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Information); dtGrillaCamposVisibles.Rows[DgvCamposVisibles.FocusedRowHandle][2].ToString(); DgvCamposVisibles.SetRowCellValue(DgvCamposVisibles.FocusedRowHandle, DgvCamposVisibles.Columns[2], "100"); } } }