Access to Control in GridView Template

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pvong

    Access to Control in GridView Template

    Newbie doing this in VB.Net using VS2008.

    I created a Template column in my GV and I have a Label control in this
    template column and this is column 10.

    I have a RowDataBound. All I want it to do is get access Label control.
    Can someone show me how to do that?

    Pretend I want to give it a text of "123", how can I get label.text = "123"
    in RowDataBound?

    Thanks!




  • pvong

    #2
    Re: Access to Control in GridView Template

    Never mind. I found out I didn't need the label at all. This is all I had
    to do.

    e.val.cell(10). text = "123"


    "pvong" <phillip*at*yah oo*dot*comwrote in message
    news:uceVnx1SJH A.1184@TK2MSFTN GP03.phx.gbl...
    Newbie doing this in VB.Net using VS2008.
    >
    I created a Template column in my GV and I have a Label control in this
    template column and this is column 10.
    >
    I have a RowDataBound. All I want it to do is get access Label control.
    Can someone show me how to do that?
    >
    Pretend I want to give it a text of "123", how can I get label.text =
    "123" in RowDataBound?
    >
    Thanks!
    >
    >
    >
    >

    Comment

    Working...