Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
hello
how can i multi filter in dataview in .net
for example (.RowFilter = "columename = 'value' and 'value' and ... " . colume type string or integer
Posted 21-Sep-12 1:51am
Comments
Wes Aday at 21-Sep-12 16:49pm
   
Not sure why you keep adding questions disguised as solutions but you have already been told your answer. In case Amit's answer is not good enough see, http://www.csharp-examples.net/dataview-rowfilter/ which tells you the same thing.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try can use or/and condition in RowFilter. Try this:
dv.RowFilter = "id=0 or id=4";
//Here dv is the object of your dataview
or
dv.RowFilter = "id=0 or index=10";
//Here dv is the object of your dataview
 

--Amit
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

no، i mewan is : dv.RowFilter = "id=0 and id=4" and...;
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

how can i dv.RowFilter = "id=0 and id=4" and...;
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

or dv.RowFilter = "id=0 and 4"
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 21 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid