GridView_RowCommand 得到选择行的主键值
<asp:GridView ID="gvCustomer" runat="server" AutoGenerateColumns="False" OnRowCommand="gvCustomer_RowCommand">
<Columns>
<asp:BoundField DataField="CustomerCode" HeaderText="客户号" />
<asp:BoundField DataField="CustomerName" HeaderText="客户姓名" />
<asp:CommandField ShowSelectButton="True" HeaderText="选择" />
</Columns>
</asp:GridView>
protected void gvCustomer_RowCommand(object sender, GridViewCommandEventArgs e)
在这里里面我想要执行一个方法 当我点选择按钮的时候后
方法public void bindCustomerInfo(int CustomerId) 绑定这行的值
如何得到?