Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
How to remove the selected and active row when filter updating in a grid?
posted

Hi, 

I came a problem when refreshing filter in a xamdatagrid. 

If there are 5 rows in my grid, and i selected the first 3 rows, the 3rd row is active.  Then, i changed the filter condition which will make row 1, 3, 5 disappear. Now, i want to refresh selection and active row to make the row 2 is selected only and no row is active. 

However, the current xamdatagrid's behavior is even after filter updates, the active row (row 3) doesn't disappear until i make another row active. Also, the SelectedItemsChanged doesn't trigger and selecteditems still has 3 rows before i select another row. That's no good. 

Is there any setting to change the behavior quickly? Or i must programmatically set the selected and active record when filter updating?

Thanks.