Click here to Skip to main content
12,303,940 members (72,124 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100