private void gridCompAImputar_DoubleClick(object sender, System.EventArgs e) { //if (gridCompAImputar.CurrentColumn.Key.Equals("Saldo")) //{ DetalleCuentaCorriente dcc = (DetalleCuentaCorriente)gridCompAImputar.GetRow().DataRow; dcc.Pago = dcc.Saldo * dcc.Signo; gridCompAImputar.Refetch(); //} }
private void gridEXDetalle_UpdatingCell(object sender, UpdatingCellEventArgs e) { if (this.gridEXDetalle.SelectedItems.Count > 0) { object selectedItem = this.gridEXDetalle.SelectedItems[0].GetRow().DataRow; if (!_uiController.AllowSeleccion() && !_uiController.IsEditable(selectedItem)) { e.Cancel = true; gridEXDetalle.Refetch(); } } }