highlight text in datagridview based on search text using vb.net
priyanka9
0
Newbie Poster
Recommended Answers
Jump to PostDataGridView1.Rows(3).Cells(1).Style.BackColor = Color.Aqua
Jump to PostLoop over all rows and cells and set the BG colour for matching cells.
Jump to PostWhen 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 …
All 9 Replies
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
priyanka9
0
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
priyanka9
0
Newbie Poster
priyanka9
0
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
priyanka9
0
Newbie Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
priyanka9
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.