When I set a filter programmatically the built in filtering does not reflect the new filter.
Here is the filter code:
The active filter is set. The filter icon in the column header goes orange but when I click on the filter icon True is not selected and when I check true or false it appears to add that filter to the one I set programmatically.
Is there anyway to set the filter either programmatically or through xaml so that the filter is reflected in the UI and acts exactly as if it was done in the UI?
Thanks,
Here is the filter code:
IColumnFilterDescriptor activeFilter = vehicleListGridView.Columns["Active"].ColumnFilterDescriptor;
activeFilter.SuspendNotifications();
activeFilter.FieldFilter.Filter1.Operator = FilterOperator.IsEqualTo;
activeFilter.FieldFilter.Filter1.Value = "True";
activeFilter.FieldFilter.Filter1.IsCaseSensitive = false;
activeFilter.ResumeNotifications();
The active filter is set. The filter icon in the column header goes orange but when I click on the filter icon True is not selected and when I check true or false it appears to add that filter to the one I set programmatically.
Is there anyway to set the filter either programmatically or through xaml so that the filter is reflected in the UI and acts exactly as if it was done in the UI?
Thanks,