Hello,
Jesse, thank you for the provided solutions. CreateRow event will fire for all the rows in the grid. In this case, I can suggest you to use the DefaultValuesNeeded event in order to set the default values in RadGridView. DefaultValuesNeeded event fires when the user enters the row for new records so that it can be populated with default values. Please refer to the following code snippet which result is demonstrated in the attached gif file:
private void RadGridView1_DefaultValuesNeeded(object sender, GridViewRowEventArgs e)
{
e.Row.Cells["ComboBoxColumn"].Value = "Mr.";
}
I hope this helps. Should you have any other questions, I will be glad to help.
Regards,
Nadya
Progress Telerik
Get
quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.
Learn More.