I have a textbox and a Datagrid. The datagrid has two columns name and Email address. I want to Filter the datagrid values with the value in the textbox.
相关问题
- VNC control for WPF application
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
- How to properly change a resource dictionary
You can use a
ICollectionView
for theDataGrid
ItemSource
then you can apply aFilter
predicate and refesh the list when needed.Here is a very quick example.
Xaml:
Code:
Result: