Hi - I have a situation where I want to pro programatically sort a grid as soon as data is loaded. I can't use the Loaded event because it fires so frequently (layout changes, etc...). Is there an event that fires when data is bound to the grid and no other time? Perhaps a trigger in xaml that would accomplish this? What is the easiest way to do this?
Thanks!
Hi,
I'm just checking have you been able to resolve your issue? If you still have any concerns or questions I will be glad to help.
Thank you for choosing Infragistics.
Both of these solutions work - but it appears that the grid does not sort automatically when the underlying data source is changed.
I have my grid bound to an ObservableCollection that gets changed frequently by updates that come in from a server. That being the case, the grid becomes unsorted rather quickly. Are there any work arounds for this?
Thanks.
Aside from manually telling the grid to sort after any code update to the datasource...
Great, thanks.
When the grid receives a notification that a property on data item changes it will raise the InitializeRecord event where the ReInitialize property of the InitializeRecordEventArgs is set to true. You could listen to the InitializeRecord event and call RefreshSortPosition on the Record.