My first time working with dataviews and as usual it's not going exactly as documented!
I'm trying to perform and extremely simple filter on a dataset I've populated from my SQL DB.
The row filter is dynamically created when the user selects an option from a drop down listbox, hence the building of the filter string (matches the selected listbox index to a corresponding datatable value).
Anyhoo... this produces a row filter equal to;
Manufacturer = 'AutoDesk' (although 'AutoDesk' could be whatever)
question is, how can I get that filter to take effect, as it's not with that syntax.
TIA!
Jeff W.
MCSE, CNE
I'm trying to perform and extremely simple filter on a dataset I've populated from my SQL DB.
The row filter is dynamically created when the user selects an option from a drop down listbox, hence the building of the filter string (matches the selected listbox index to a corresponding datatable value).
Code:
strFilterBy = "Manufacturer = '" & DsManufList1.Tables(0).Rows(shtSelected).Item(0) & "'"
DsSoftwareList1.Tables("Software").DefaultView.RowFilter = strFilterBy
Anyhoo... this produces a row filter equal to;
Manufacturer = 'AutoDesk' (although 'AutoDesk' could be whatever)
question is, how can I get that filter to take effect, as it's not with that syntax.
TIA!
Jeff W.
MCSE, CNE