I have a WPF application using Caliburn.Micro. A DataGrid is bound to a collection of objects in the ViewModel. Could you please suggest a way to filter the DataGrid contents, if possible by any field?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a new property in the view-model:
And then after you populate the bindable collection:
In your view change the binding from
collectionNametoFooView.The CollectionView classes provide ways to sort/filter/group the data. In your case How to: Filter Data in a View. The filter code will vary depending on your model and requirements.