I have a gridview in which i would like to 'hide' certain text in the cell.
Certain rows, I need to have the text hidden and
To achieve this, I want to set the tablecell's forecolor to the tablecell's backcolor property, thereby making the text invisible and hiding it.
In the RowDataBound event I have tried using this:
but when I step through this the BackColor is always rgb(0,0,0,0)Code:Dim tc As TableCell = e.Row.Cells(4) tc.ForeColor = tc.BackColor tc = e.Row.Cells(5) tc.ForeColor = tc.BackColor
Does anyone know how I can achieve this ?




Reply With Quote