像OnPageIndexChanged,OnItemCreated,OnItemCommand,OnItemDataBound
这样的DataGrid事件
将网格放置在UpdatePanel中后停止触发?
答案 0 :(得分:1)
您可能需要将每个LinkButton(我正在使用LinkButton)注册为AsyncPostBackTrigger。在DateGrid(即:onRowDataBound)中绑定每一行之后,您需要搜索LinkButton并通过代码注册它,如下所示:
LinkButton lb = e.Row.FindControl("MarkAsCompleteButton") as LinkButton;
ScriptManager.GetCurrent(this).RegisterAsyncPostBackControl(lb)