Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linq or rowfilter?

Status
Not open for further replies.

chronics

Programmer
Sep 10, 2006
35
GB
I am attempting to write a query against a datatable in linq. There are 5 comboboxes, each of which have a number of values that can be used to filter the datatable. One of the options for each of the five comboboxes is to not filter the datatable based upon any of the values in that particular combobox.

Normally I would use a concatanated strings with the rowfilter property. How do i do the same thing with a linq query and the where clause, more specifically is there a way to not apply a filter for the values in a particular combobox.

Any help much appreciated
 
I have since decided to use the rowfilter property as I cant figure out how to do the above with linq. I have also read Rowfilter has better performance anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top