GridView1事件

1 protected void GridView1_DataBinding(object sender, EventArgs e)
{
该事件当服务器控件绑定数据时发生。
}
2 protected void GridView1_DataBound(object sender, EventArgs e)
{
该事件当服务器控件完成数据绑定后发生。
}
3 protected void GridView1_Disposed(object sender, EventArgs e)
{
控件已被释放后激发
}
4 protected void GridView1_Init(object sender, EventArgs e)
{
在初始化页后激发
}
5 protected void GridView1_Load(object sender, EventArgs e)
{
在加载页后激发
}
6 protected void GridView1_PageIndexChanged(object sender, EventArgs e)
{
gridview当前页索引以更改时激发
}
7 protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
gridview当前页索引正在更改时激发
}
8 protected void GridView1_PreRender(object sender, EventArgs e)
{
在呈现该页前激发
}
9 protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
在gridview 内生成Cancel事件时激发
}
10 protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
当gridview 内生成事件时激发
}
11 protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
在创建行时激发
}
12 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
在对行进行了数据绑定后激发
}
13 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
对数据源进行 delete 命令后激发
}
14 protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
对数据源进行 delete 命令前激发
}
15 protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
当gridview 内生成Edit事件时激发
}
16 protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
对数据源执行Update命令后激发
}
17 protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
对数据源执行Update命令前激发
}
18 protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
在gridview 中选择行时,在该选择操作完成后激发
}
19 protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
在gridview 中选择新行时,在选择新行前激发
}
20 protected void GridView1_Sorted(object sender, EventArgs e)
{
在gridview中排序列时,在排序完成后激发
}
21 protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)
{
在gridview中排序列时,在排序发生前激发
}
22 protected void GridView1_Unload(object sender, EventArgs e)
{
在卸载该页时激发
}

posted on 2016-04-25 17:41  _jimmy  阅读(1472)  评论(0编辑  收藏  举报

导航