Delayed databinding

  • Thread starter Thread starter StickMonster
  • Start date Start date
S

StickMonster

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?
 
StickMonster said:
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.DataSourceID = myDataSourceID;
grvData.DataBind();
 
Back
Top