Setting SelectedValue

Discussion in 'ASP .Net' started by David C, Jun 30, 2009.

  1. David C

    David C Guest

    I have a GridView that I would like to set the selected value to a specific
    record but the SelectedValue is a read-only. I would like to do it on
    Page.Load based on a QueryString passed to the page. I know I can do it
    with the SelectedIndex but then I would have to know the index location of
    the record. Can I do something in RowDataBound to set the selected record?
    Thanks.

    David
     
    David C, Jun 30, 2009
    #1
    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. Charlie@CBFC

    No postback after setting SelectedValue

    Charlie@CBFC, Nov 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    389
    Eliyahu Goldin
    Nov 29, 2005
  2. Crazy Cat
    Replies:
    2
    Views:
    1,025
    Crazy Cat
    Sep 10, 2007
  3. David C

    Setting DropDownList SelectedValue

    David C, Nov 20, 2007, in forum: ASP .Net
    Replies:
    9
    Views:
    667
    Scott Roberts
    Nov 21, 2007
  4. J
    Replies:
    2
    Views:
    373
  5. tshad

    Error setting SelectedValue

    tshad, Jun 2, 2010, in forum: ASP .Net
    Replies:
    1
    Views:
    303
    stanlj
    Jun 16, 2010
Loading...

Share This Page