G
Guest
Hello, I need to set the selection in the RadioButtonList according to the
value of SelectedValue in the underlying dataset - please suggest. The code
is below. Thank you.
<asp:TemplateColumn>
<HeaderStyle Width="7px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:RadioButtonList DataTextField="SelectedValue"
DataValueField="SelectedValue" RepeatDirection="Horizontal" ID="Selection"
Runat="server">
<asp:ListItem Selected="False">Yes</asp:ListItem>
<asp:ListItem Selected="False">No</asp:ListItem>
<asp:ListItem Selected="True">N/A</asp:ListItem>
</asp:RadioButtonList>
value of SelectedValue in the underlying dataset - please suggest. The code
is below. Thank you.
<asp:TemplateColumn>
<HeaderStyle Width="7px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:RadioButtonList DataTextField="SelectedValue"
DataValueField="SelectedValue" RepeatDirection="Horizontal" ID="Selection"
Runat="server">
<asp:ListItem Selected="False">Yes</asp:ListItem>
<asp:ListItem Selected="False">No</asp:ListItem>
<asp:ListItem Selected="True">N/A</asp:ListItem>
</asp:RadioButtonList>