title: ASP.NET page events - Button click event comes after GridView bind
body: <p>My understanding of the order of page events is this:</p>
  <blockquote>
  <p>Page : Load</p>
  <p>Control : DataBind (for a GridView or whatever)</p>
  <p>Control : Load</p>
  <p>Control : Clicked (for a Button)</p>
  <p>Page: PreRender</p>
  <p>Control : PreRender</p>
  </blockquote>
  <p>(There are lots of others - but these are the ones I'm interested in)</p>
  <p>The important thing to notice here is that the button's click event comes <em>after</em> the gridview's bind event. If the button causes a change to the data, the GridView displays the old data. I could rebind the control in the PreRender event, but that seems totally ugly.</p>
  <p>This must be a very common pattern (a button that updates data). How do I put this together so that the GridView binds to the data <em>after</em> the Button click changes it?</p>