1.在Gridview的事件RowDataBound中添加
if(e.Row.RowType==DataControlRowType.DataRow)
{
e.Row.Attributes["OnClick"]=ClientScript.GetPostBackEventReference(e.Row.Parent.Patent,"Select$"+e.Row.RowIndex);
}