Delayed databinding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U3RpY2tNb25zdGVy?=

    #1

    Delayed databinding

    I've got a gridview wired up to a sqldatasouce. What's the right way to
    delay databinging so that it occurs on an event, like a button click, instead
    of page_load?
  • Joe Fawcett

    #2
    Re: Delayed databinding



    "StickMonst er" <StickMonster@d iscussions.micr osoft.comwrote in message
    news:7B2BD42A-DDC9-4C37-828A-919E76D4AC79@mi crosoft.com...
    I've got a gridview wired up to a sqldatasouce. What's the right way to
    delay databinging so that it occurs on an event, like a button click,
    instead
    of page_load?
    Set up and call databinding in code and call this from within the event
    handler.
    grvData.DataSou rceID = myDataSourceID;
    grvData.DataBin d();

    --

    Joe Fawcett (MVP - XML)




    Comment

    Working...