Results 1 to 5 of 5

Thread: [RESOLVED]setting gridview cell forecolor to backcolor

Threaded View

  1. #1

    Thread Starter
    Fanatic Member ZeBula8's Avatar
    Join Date
    Oct 2002
    Posts
    548

    Resolved [RESOLVED]setting gridview cell forecolor to backcolor

    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:

    Code:
            Dim tc As TableCell = e.Row.Cells(4)
            tc.ForeColor = tc.BackColor
            tc = e.Row.Cells(5)
            tc.ForeColor = tc.BackColor
    but when I step through this the BackColor is always rgb(0,0,0,0)

    Does anyone know how I can achieve this ?
    Last edited by ZeBula8; Apr 3rd, 2007 at 10:28 PM. Reason: Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width