Link to home
Start Free TrialLog in
Avatar of deanlee17
deanlee17

asked on

WPF filtering datagrid

Hi guys.

I am trying to filter a datagrid using Collection view source but having no real luck so far. Im assigning a datasource to the grid with the following...

 Dim testobj = CountPartsDataSet.CounterfeitParts
  Me.flxCounterfeit.ItemsSource = testobj

How do i encorporate the collectionViewSource to allow filtering, or is there an alternative? The filter is a cell in another grid, i.e FlxHeader(FlxHeader.SelectedIndex, 8).Text

Thanks,
Dean
ASKER CERTIFIED SOLUTION
Avatar of Habib Pourfard
Habib Pourfard
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deanlee17
deanlee17

ASKER

CounterfeitPart is a table in a dataset, will your example still work with this?
Wont allow me to even have...

Me.flxCounterfeit.filter
Then, I think it's better to apply the following method:
Filtering items in a DataGrid
Right, I dont understand how to link that example to a textbox and then filter on a specific datagrid column.