I have a datagrid column whose column values are database bound. I used DataGridTemplateColumn and I need to use sorting in this column.
my:DataGridTemplateColumn SortMemberPath="FileName" Header="Name" IsReadOnly="True" MinWidth="150"
It works and sorts the data, but when I edit the data after sorting, I need to regenerate the data in the column.
FileListingGrid.ItemsSource = listFiles1;
But this generates "Sort" is not allowed during an AddNew or EditItem transaction.
It works fine when the column data is not sorted, but whenever I sort the data and you need to regenerate the column data, it gives the following error.
source
share