Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
InitializeDataSource fires before the datasource is prepared
posted

Pardon the newbie here but I can't get the WebGrid to work in LoadOnDemand mode.  I am binding to the datasource at runtime, triggered by a button click which calls a web service to retrieve the dataset.  The problem is that since the webgrid is on the .aspx page, I can't seem to effect when the InitializeDataSource event is fired.  Currently it fires before I can process the postback and generate the datasource.  How do I generate the dataset and then have it bound to the webgrid?