Dim btn As Button = DirectCast(sender, Button) 'Get reference of the gridview row of the button clicked. Dim GridView2 As GridViewRow = DirectCast(btn.Parent.Parent, GridViewRow) Dim rbList As RadioButtonList = DirectCast(GridView1.Cells(2).FindControl("radioButtonList1"), RadioButtonList)
<asp:TemplateField HeaderText="Date"> <ItemTemplate> <table style="width:100%;"> <tr> <td align="justify"> <asp:RadioButtonList ID="radioButtonList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource3" DataTextField="date" DataTextFormatString="{0: d}" DataValueField="date" Height="30px" Width="98px"> </asp:RadioButtonList> </td> </tr> </table> </asp:TemplateField>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)