At the moment I'm facing an issue, I have a RadGridView which can show different tables with different definitions(not at the same time)
So AutoGenerateColumns is set to True.
now it can happen that some columns have an FK to another table.
Before I replaced those columns in the DataLoaded event but because of performance reasons I would like to do those replaces in the CurrentCellChanged event.
The problem when I do this is that the new GridViewComboBoxColumn misses the link to the actual datasource, and while reading the value for saving in the database, the value is DBNULL.
the gridview in de Xaml looks like this
and my code behind looks like this:where the Field "Id" is the related field on the related table
If I do this
what I would say is logical, the shown value in the combobox stays empty.
does anyone know where to look to fix this issue?