Click here to Skip to main content
Sign Up to vote bad
good
See more: VB.NET
I am working on vb.net
 
I am searching in datagrid column columns. I would like to change fore/back color of all found text, not whole cell/rows
 
anybody can help me
Posted 20 Sep '12 - 21:43

Comments
A. K. Maurya - 22 Sep '12 - 7:02
Thanks Through this code cell color is changed. but see what i really want. I want to change color of few text only. not the complete cell.

1 solution

for cells
Grid.Rows(iRow).Cells(iCell).Style.BackColor = Color.White
for rows
Dim cs As DataGridViewCellStyle =  New DataGridViewCellStyle()
cs.BackColor = Color.White
Grid.Rows(iRow).DefaultCellStyle = cs
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 239
1 OriginalGriff 173
2 Maciej Los 135
3 Mahesh Bailwal 104
4 Aarti Meswania 98
0 Sergey Alexandrovich Kryukov 10,264
1 OriginalGriff 7,917
2 CPallini 4,181
3 Rohan Leuva 3,522
4 Maciej Los 3,125


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 21 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid