ASP.NET gridview control rowCreated function after button click
<p>I am wondering how can I control the execution order of server-side functions(asp.net and C#) for a post_back request?</p>

<p>For example: 
I have two buttons on my webpage, and click on any of them will trigger a post_back request. The post back will update a gridview in an AJAXUpdatePanel. I found that if I click button1, the functions execution order is:
button1_onclick();
gridview1_rowCreated();</p>

<p>However, if I click button 2, the order is:
gridview1_rowCreated();
button2_onClick();</p>

<p>Is there anyway to make the order consistent? Any comment is truly appreciated. </p>
