2
Contributors
9
Replies
12
Views
4 Years
Discussion Span
Last Post by priyanka9
0

i want to highlight only the text based on search criteria.. for example my search text is DOT,,,,and on my gridview ihave cell with DOTNET ,,,, so only DOT Should be highlighted

0

no i dont want the bg color ,,, i want only the particular text say DOT to be highlighted with red color

0

and i dont want the cell to be highlighted ,,, i want only text to be highlighted

0

When you highlight text on paper you are changing the background colour. That's the definition of highlighting. That's also the definition in pretty much all the word processor/text display programs I have ever seen. If what you are saying is you want to change the text colour then use ForeColor instead of BackColor in the code I posted above.

Just don't call it highlighting.

0

ya i agree with u what u said is correct..... but i want to highlight the part of the text in the grid view

0

Got you. Like selecting "doc" in "indoctrinate" would result in only "doc" being highlighted. I don't think you can get that type of granularity in that control. I might have got that sooner if I'd had more than 3 hours sleep in the last 24 hours.

Edited by Reverend Jim

0

ya u r right.... thats fine, why dont you just try it... when you are freee....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.