I need to filter multiple rows in dataview. Here I used rowfilter. But, I want to filter multiple rows. Which command can be used? My code is:
foreach (string s1 in list)
{
if (s1 != string.Empty)
{
dvData.RowFilter = "(code like '" + searchText + "*') AND (code <> '" + s1 + "')";
}
}
The problem is, it takes only one value and it is overwritten during the loop.
If you want to add all codes for
codefield inRowFilterthen you can try this: