看看你这部分代码 /// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.dg_EditCounter.PageIndexChanged += new System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.DataGrid1_PageIndexChanged);
this.dg_EditCounter.CancelCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.dg_EditCounter_CancelCommand);
this.dg_EditCounter.EditCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.dg_EditCounter_EditCommand);
this.dg_EditCounter.UpdateCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_UpdateCommand);
this.dg_EditCounter.DeleteCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_DeleteCommand);
this.dg_EditCounter.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.DataGrid1_ItemDataBound);
this.Load += new System.EventHandler(this.Page_Load); }
#endregion有没有 类似this.dg_EditCounter.PageIndexChanged += new System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.DataGrid1_PageIndexChanged);
这样的代码
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.dg_EditCounter.PageIndexChanged += new System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.DataGrid1_PageIndexChanged);
this.dg_EditCounter.CancelCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.dg_EditCounter_CancelCommand);
this.dg_EditCounter.EditCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.dg_EditCounter_EditCommand);
this.dg_EditCounter.UpdateCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_UpdateCommand);
this.dg_EditCounter.DeleteCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_DeleteCommand);
this.dg_EditCounter.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.DataGrid1_ItemDataBound);
this.Load += new System.EventHandler(this.Page_Load); }
#endregion有没有 类似this.dg_EditCounter.PageIndexChanged += new System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.DataGrid1_PageIndexChanged);
这样的代码
谢谢~~!
顺便在请教一下,这行代码是干什么用的?