How to search and highlight text in datagrid in .net 2.0?
-
Hi, I am using .net 2.0. I want to search & highlight the text in datagrid like Edit->FindNext option present in NotePad, Word etc. I saw many examples to highlight the searched text within the datagrid at once. But I want to search the text one by one. If anyone know the idea please help me to implement this. Thanks.
-
Hi, I am using .net 2.0. I want to search & highlight the text in datagrid like Edit->FindNext option present in NotePad, Word etc. I saw many examples to highlight the searched text within the datagrid at once. But I want to search the text one by one. If anyone know the idea please help me to implement this. Thanks.
hope this could help http://www.nsftools.com/misc/SearchAndHighlight.htm[^] in the highlighting function, just break the code and return after the first highlight and hold the value in a local variable and see if you could give that value in the local variable as the starting index for the next search, hope this could work in the code u claimed u currently have, the one that does well for one time search. But defintly needs some tuning.