来自Asp.net精英论坛:bbs.1aspx.com int rowindex = ((GridViewRow)(((LinkButton)sender).NamingContainer)).RowIndex;