Hi,
i've a question on XamDataGrid.
I sort a XamDataGrid programmatically, after this I want to prevent user sorting, by click on column header. Is it possible?
Thanks
Andrea
obviously I want maintan the programmatically order.
Handle Grid.Sorting event and in the handler set e.handled = true.
This way XamDataGrid will not sort the grid on ColumnClick.
As an alternative you can also write you own SortComparer and supply it to grid.