日期:2014-05-17 浏览次数:20499 次
protected void dg_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string pkid = ((System.Data.DataRowView)(e.Row.DataItem)).Row["PKID"] as string;
e.Row.Attributes["onclick"]=this.Page.ClientScript.GetPostBackEventReference(this, pkid);
}
}
//IPostBackEventHandler借口实现
void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
{
gridviewClick(eventArgument);
}
private void gridviewClick(string pkid)
{
BindPermit(pkid);
}