How can I define a default value for a combo box that only affects new row entry? All other rows should retain the values that have already been set.
I ended up doing something else. It seems to work.
I used the XAMDataGrid RecordAdding event: try {
// Check to see if it already has a value. It will cause an exception if it doesn't. string POCPriorityValue = e.Record.Cells["POCPriorityValue"].Value.ToString(); } catch {
// Set default value. e.Record.SetCellValue(e.Record.Cells["POCPriorityValue"].Field, "Medium"); }
HI,
I am attaching a sample project that sets a default value for the ComboBox for the NewRow.
Sincerely, Matt Developer Support Engineer