SelectorField Help

Nov 20, 2009 at 8:11 AM

Hi

I'm using the selectorField (Radio Button Option) control on a Gridview (see code sample).

<asp:GridView ID="GrdInvestment" runat="server" AutoGenerateColumns="False"
                    Visible="False" AllowPaging="True" PageSize="5" DataKeyNames ="traref">
                    <Columns>
                        <mb:SelectorField SelectionMode ="Single" HeaderText ="Deal Number" />

<asp:BoundField DataField="traref" HeaderText="Reference" />
                        <asp:BoundField DataField="ValDat" HeaderText="Value Date"
                            DataFormatString="{0:dd/MM/yyyy}" />

</Columns>
                </asp:GridView>

How do I on click of a button dynamically retrieve the DataKey value of the selected radio button click