views:

384

answers:

1

I installed the most recent WPF toolkit and used the Datagrid controll. The list of items is showing with automaticly generated columns based on my IList as ItemsSource.

I was wondering if there is an OOTB way to have filtering/sorting in this grid?
A way to click the header to make it sort, or use a dropdown in the header that shows all the possible values so that column is filtered on that property.

Right now my grid is just a fancy list of items.

+1  A: 

To enable filtering, sorting and grouping, you can use the ICollectionView interface. See this post for more information.

To enable sort when clicking the column header, you can set to true the CanUserSortColumns of the DataGrid control.

Jalfp
Thanks, I will check them out
borisCallens