GridVIew columns (hidden)

Discussion in 'ASP .Net' started by MP, Feb 15, 2007.

  1. MP

    MP Guest

    Hi all,

    who knows how to use hidden columns from GridView in Update Command from
    attached to it SqlDataSource? For example: I have hidden column UserId and
    for given case I want to use it as @UserId variable in update command. When
    this column is redaonly then this variable has null values. So is there any
    way to it with oryginal value?

    MP
     
    MP, Feb 15, 2007
    #1
    1. Advertisements

  2. When you hide comtrols with Visible=false, they don't get rendered to the
    client and don't come back in postbacks. To get the value on postbacks, hide
    with css rule display:none.

    --
    Eliyahu Goldin,
    Software Developer & Consultant
    Microsoft MVP [ASP.NET]
    http://msmvps.com/blogs/egoldin
    http://usableasp.net
     
    Eliyahu Goldin, Feb 15, 2007
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.