如何触发SPGridView RowDataBound事件?

时间:2012-04-19 05:19:04

标签: asp.net sharepoint event-handling

asp.net中的网络用户控件中,我正在使用一个spgridview 我要解雇spgridview_rowdataevent。我该怎么办? 请帮帮我。

1 个答案:

答案 0 :(得分:2)

将其添加到GridView

OnRowDataBound="GridViewRowEventHandler"

然后在您的代码中使用

执行您想要的任何操作
void GridViewRowEventHandler(object sender, GridViewRowEventArgs e)