点击GridView的某行,显示该行的详细信息

1.在Gridview的事件RowDataBound中添加

   if(e.Row.RowType==DataControlRowType.DataRow)

   {

       e.Row.Attributes["OnClick"]=ClientScript.GetPostBackEventReference(e.Row.Parent.Patent,"Select$"+e.Row.RowIndex);

    }

posted @ 2011-08-03 15:35  xuebingz  阅读(444)  评论(1编辑  收藏  举报