Gridview binding on Page_Load

Discussion in 'ASP .Net' started by kevin@webpageconcepts.com, Dec 12, 2006.

  1. Guest

    Hi, for kicks in Studio 05 I have set up a small site using all built
    in controls, so I configured a connection and gridview with editing
    enabled. The goal is the user loads the page selects from a drop down
    and fills the gridview on postback. Because I'm not useing any code to
    do this the connection is expecting a variable for the query for the
    grid when the page loads. How can overide this and get the grid to
    wait until the drop down is fired. I know I can give the drop down a
    value that does not return anything when the page loads but thats no
    good.

    If I was using code I would simply run the query and bind the grid in
    the ddl index changed event. Thanks for any input. KD
     
    , Dec 12, 2006
    #1
    1. Advertisements

  2. Goofy Guest

    Bind the grid in the pre-render event

    <> wrote in message
    news:...
    > Hi, for kicks in Studio 05 I have set up a small site using all built
    > in controls, so I configured a connection and gridview with editing
    > enabled. The goal is the user loads the page selects from a drop down
    > and fills the gridview on postback. Because I'm not useing any code to
    > do this the connection is expecting a variable for the query for the
    > grid when the page loads. How can overide this and get the grid to
    > wait until the drop down is fired. I know I can give the drop down a
    > value that does not return anything when the page loads but thats no
    > good.
    >
    > If I was using code I would simply run the query and bind the grid in
    > the ddl index changed event. Thanks for any input. KD
    >
     
    Goofy, Dec 12, 2006
    #2
    1. Advertisements

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. Jordan
    Replies:
    2
    Views:
    2,754
    Jordan
    Feb 10, 2004
  2. bminder
    Replies:
    1
    Views:
    2,360
    nfedin
    Feb 23, 2004
  3. T-Bone
    Replies:
    0
    Views:
    610
    T-Bone
    Jul 6, 2004
  4. z. f.
    Replies:
    0
    Views:
    727
    z. f.
    Oct 19, 2004
  5. Amit
    Replies:
    6
    Views:
    14,272
    Assimalyst
    Oct 24, 2006
  6. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    18,267
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  7. rockdale
    Replies:
    1
    Views:
    882
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Nov 16, 2006
  8. David C

    Page_Load before binding?

    David C, Jun 27, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    537
    Cowboy \(Gregory A. Beamer\)
    Jun 27, 2007
Loading...