Hi,
SfDataGrid has GridComboBoxColumn, DisplayMember is car number. When adding a new row, user selects a car number in the ComboBox column. Columns like "car model" are read only for information purposes.
How to change the contents of these read only information cells, as user is selecting different cars? When updating the current Record in CellComboBoxSelectionChanged, values are displayed only when combo box cell has lost focus.
private void grid_CellComboBoxSelectionChanged(object sender, CellComboBoxSelectionChangedEventArgs e)
{
if (e.GridColumn.MappingName == "car")
{
var car = e.SelectedItem as Car;
var row = e.Record as Dto;
row.Model = car.ModelName; // Grid should display this value right away
row.Company = car.Company.ShortName; // Grid should display this value right away
}
}