这段代码放到VS中测试一下可以看到两个方法的执行顺序 html <asp:GridView ID="gv" OnRowDataBound="gv_RowDataBound" OnRowCreated="gv_RowCreated" runat="server"></asp:GridView> <asp:Button ID="btn" runat="server" Text="Click Me" /> C# code protected void Page_Load(object sender, EventArgs e) { //F9 + 断点 if(!IsPostBack) { gv.DataSource = new string[] {"1"}; gv.DataBind(); } } protected void gv_RowDataBound(object sender, GridViewRowEventArgs e) { //F9 + 断点 int i = 0; } protected void gv_RowCreated(object sender, GridViewRowEventArgs e) { //F9 + 断点 int i = 0; }