/// <summary> /// Query value for unbound field /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void unboundField_QueryValue(object sender, FieldValueEventArgs e) { if (e.Record is AddNewRecord) { return; } if (e.Field.Name == "QuantityCount") { e.Value = e.Record.GetCustomPosition(); } else { e.Value = e.Record.GetVisibleCustomPosition(); } }
private void grid_QueryValue(object sender, FieldValueEventArgs e) { e.Value = e.Record.ParentTable.Records.IndexOf(e.Record); }
private void grid_SaveValue(object sender, FieldValueEventArgs e) { Console.WriteLine("grid_SaveValue: " + e.ToString()); }
/// <summary> /// Could write back value here if needed when unbound field is changed by user. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void unboundField_SaveValue(object sender, FieldValueEventArgs e) { Console.WriteLine(e.Value); }