Search code examples
asp.netasp.net-web-apidevexpressweb-controlspage-lifecycle

Is there an Event that is triggered when all page controls are loaded and databound?


I am using the DevExpress suite of web controls and have built a page with a fairly large entry form with textboxes, comboboxes, etc.

I am writing code to randomly generate data to populate this large form with. I call this code with a line on the Page_Load event but I realize that at the time of the call, anything that has a datasource attached to it (combobox, for example), is not databound yet.

Is there an existing event I can hook into that is called when the all of the page's controls AND datasources are bound?


Solution

  • The PreRenderComplete page lifecycle event is fired after all controls are loaded and databound.