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.
Could you please provide me sample for using SortComparer property of the XamDataGrid.
I have written sample class as follows
Implements IComparer
End Sub
Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer Implements System.Collections.IComparer.Compare
End Function
End Class
====
and set SortComparer property as follows :
Dim iComparer As IComparer
parentCaptionField.Settings.SortComparer = iComparer
But still XamDataGrid does not do the sorting..
Please suggest what can be the issue...
Regards,
Vinod Sa.