Click here to Skip to main content
15,913,610 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hii I want to search data that are present inside the gridview.And when the search completed the searched data should be highlighted.Please provide me the code in Vb.net syntax as soon as possible.
Posted
Comments
Sandeep Mewara 28-Jan-11 8:41am    
Please provide me the code in Vb.net syntax as soon as possible
1. You are asking for code
2. As soon as possible
3. Have not shown any effort made!
:doh:
Sandeep Mewara 28-Jan-11 8:42am    
Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.

1 solution

Here is the hint.
Loop through cells, match the value with
VB
If strCellValue Like "*" & strFind & "*" Then
'highlight your cell here
Else
'normal cell style here
End If
 
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