单击gridview中和gridview_prerender和gridview_databound之前的编辑按钮后会发生哪个事件

时间:2013-02-19 04:50:26

标签: asp.net events gridview

单击编辑按钮后开始编辑数据需要很长时间。编辑按钮由命令AutoGenerateEditButton生成。在代码中,我在每个事件中都添加了点,但在单击编辑按钮和gridview_databound之间找不到事件。

当我尝试添加事件OnRowCommand时,我收到错误:'ASP.details_aspx' does not contain a definition for 'tableResults_RowCommand' and no extension method 'tableResults_RowCommand' accepting a first argument of type 'ASP.details_aspx' could be found (are you missing a using directive or an assembly reference?)

1 个答案:

答案 0 :(得分:0)

这些事件发生在click on edit buttongridview_databound之间 这些是: -
RowEditing - 在生成编辑事件时触发,即editindex> -1时 RowUpdating : - 点击更新时会触发此信息 Rowupdate :在提交更新时触发。

您的关注事件为RowEditing