前台
<asp:TemplateField HeaderText="排序号" Visible="False">
<ItemTemplate><asp:Label ID="SortId" runat="server" Text='<%# Eval("sortid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
后台
Button mySelectButton = (Button)sender;
int rowindex = ((GridViewRow)mySelectButton.NamingContainer).RowIndex;
Label1.Text = (this.GridView1.Rows[rowindex].FindControl("SortId") as Label).Text;