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. Advertising

  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. 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. bminder
    Replies:
    1
    Views:
    2,149
    nfedin
    Feb 23, 2004
  2. T-Bone
    Replies:
    0
    Views:
    513
    T-Bone
    Jul 6, 2004
  3. z. f.
    Replies:
    0
    Views:
    545
    z. f.
    Oct 19, 2004
  4. Amit
    Replies:
    6
    Views:
    13,752
    Assimalyst
    Oct 24, 2006
  5. rockdale
    Replies:
    1
    Views:
    645
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Nov 16, 2006
Loading...

Share This Page