Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
how can i multi filter in dataview in .net
for example (.RowFilter = "columename = 'value' and 'value' and ... " . colume type string or integer
Posted
Comments
[no name] 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.

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

or
C#
dv.RowFilter = "id=0 or index=10";
//Here dv is the object of your dataview



--Amit
 
Share this answer
 
v2
no، i mewan is : dv.RowFilter = "id=0 and id=4" and...;
 
Share this answer
 
how can i dv.RowFilter = "id=0 and id=4" and...;
 
Share this answer
 
or dv.RowFilter = "id=0 and 4"
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900