public void DoEdit(CellEditEventArgs e_) { double? d = null; if (!string.IsNullOrEmpty(e_.Cell.Text.Trim())) { double dd; if (double.TryParse(e_.Cell.Text.Trim(), out dd)) d = dd; } e_.Cell.Value = d; }
public void DoEdit(CellEditEventArgs e_) { switch(e_.Cell.Column.Key) { case "State": PriceState ps = (PriceState)Enum.Parse(typeof(PriceState), e_.Cell.Text); e_.Cell.Value=ps; break; case "FixState": FixState fs = (FixState)Enum.Parse(typeof(FixState), e_.Cell.Text); e_.Cell.Value = fs; break; case "OverwritePx": break; } }
public void DoEdit(CellEditEventArgs e_) { double d = 0; if (!string.IsNullOrEmpty(e_.Cell.Text.Trim())) { long dd; if (long.TryParse(e_.Cell.Text.Trim(), out dd)) d = Convert.ToDouble(dd); } e_.Cell.Value = d; }
public bool CanEdit(CellEditEventArgs e_) { return CentralNotificationHub.Instance().HasBeenInitiated; }
public void DoEdit(CellEditEventArgs e_) { if (!string.IsNullOrEmpty(e_.Cell.Text.Trim())) { var dbl = 0d; if (double.TryParse(e_.Cell.Text.Trim(), out dbl)) { e_.Cell.Value = dbl; return; } } e_.Cell.Value = 0d; }
public bool CanEdit(CellEditEventArgs e_) { return true; }
public void DoEdit(CellEditEventArgs e_) { }