Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I have a gridview with columns of different data types..
Depending on the column selected for searching i want to change the query for searching...
The result for int should same as that will be produced by executing LIKE query on varchar..
I am using dataview.rowfilter
Posted
Updated 5-Mar-13 6:20am
v2
Comments
[no name] 5-Mar-13 12:06pm    
Alrighty then.... did you perhaps have some sort of a question that you wanted to ask regarding some sort of a problem?
Maciej Los 5-Mar-13 12:12pm    
Please, be more specific and provide more details.
What have you done till now?

1 solution

I suggest adding a hidden column to the grid that contains the string version of any int columns that you have. Then when the user filters by the int column, you would filter by the hidden column instead of the int column, using the LIKE. I don't know how else you would do a LIKE on a number.
 
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