gridview issue - autogenerateselectbutton is not always visible

Discussion in 'ASP .Net' started by Mel, Jan 30, 2013.

  1. Mel

    Mel Guest

    I have a gridview bound to an objectdatasource. In the gridview I have the AutoGenerateSelectButton = true in the first column (I have it set as a link not an image or button). The gridview is inside an Ajax updatepanel. When the page loads the gridview automatically binds and for some reason the select link is not visible at all (all other columns and data are there). If the page postsback suddenly the select link is visible. Any ideas how to fix this?

    Things I have tried: setting updatepanel to Always or conditional makes no difference it still doesn't work, using a trigger or no trigger doesn't work, rearranging my form (I have large form with lots of divs and tables on my form and can't figure out the right combination to get the gridview to work right), if I export my gridview to Excel the first column does export but WHY isn't it visible on the page and I don't know how to "see" what's happening behind the scenes in my IE 8 browser, I have other pages with a select link in the gridview and those are working fine, i have turned off all CSS and that makes no difference.

    (I am using Win 7 and .net 4.0)
    Mel, Jan 30, 2013
    #1
    1. Advertising

  2. Mel

    Mel Guest

    On Wednesday, January 30, 2013 3:41:01 PM UTC-6, Mel wrote:
    > I have a gridview bound to an objectdatasource. In the gridview I have the AutoGenerateSelectButton = true in the first column (I have it set as alink not an image or button). The gridview is inside an Ajax updatepanel. When the page loads the gridview automatically binds and for some reason the select link is not visible at all (all other columns and data are there).If the page postsback suddenly the select link is visible. Any ideas how to fix this? Things I have tried: setting updatepanel to Always or conditional makes no difference it still doesn't work, using a trigger or no triggerdoesn't work, rearranging my form (I have large form with lots of divs andtables on my form and can't figure out the right combination to get the gridview to work right), if I export my gridview to Excel the first column does export but WHY isn't it visible on the page and I don't know how to "see" what's happening behind the scenes in my IE 8 browser, I have other pageswith a select link in the gridview and those are working fine, i have turned off all CSS and that makes no difference. (I am using Win 7 and .net 4.0)


    I figured it out. I had some code in the gridview rowdatabound event that dealt with column(0) that wasn't working as intended.
    Mel, Jan 31, 2013
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad

    button visible/not visible

    tshad, Oct 26, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    4,444
    Brian Hoops
    Oct 28, 2004
  2. tshad

    Sections visible and not visible

    tshad, Jan 31, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,059
    tshad
    Jan 31, 2005
  3. Patrick Olurotimi Ige
    Replies:
    7
    Views:
    5,962
    Patrick Olurotimi Ige
    Jun 15, 2005
  4. Replies:
    3
    Views:
    3,022
  5. Jurjen de Groot
    Replies:
    0
    Views:
    300
    Jurjen de Groot
    May 19, 2008
Loading...

Share This Page