Click here to Skip to main content
15,886,660 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Can I have more than 1 criteria for Dataview.Rowfilter on the same column ?
For example:
Dataview.Rowfilter = "Column1 = " & Var1 & "AND Column1 = " & Var2

Thanks
Anil Sharma
Posted

1 solution

Yes, You can have multiple condition based on the problem to filter a dataview. But make sure you use the correct operand and the syntax. For example: if it a varchar type then it goes like this
VB
dv.RowFilter = " Status='Active' OR Status='InActive'"

int type
VB
dv.RowFilter = "id > 0 AND index = 4"
 
Share this answer
 
Comments
Santosh K. Tripathi 19-Aug-14 6:13am    
thanks it works for me also....

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