How does one get the SelectedItemStyle to apply in a DataGrid when using a TemplateColumn to "select" a row? For example:
<asp:TemplateColumn >
<ItemTemplate>
<asp:RadioButton Runat="server" AutoPostBack="True" GroupName="Select" OnCheckedChanged="Selection_Click" ID="Select"></asp:RadioButton>
</ItemTemplate>
</asp:TemplateColumn>
I've tried forcing a row to a particular background color in the OnCheckedChanged event and that doesn't even work after postback. I do have my <SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateGray"></SelectedItemStyle> tag defined.
Thanks.
--Lenard
<asp:TemplateColumn >
<ItemTemplate>
<asp:RadioButton Runat="server" AutoPostBack="True" GroupName="Select" OnCheckedChanged="Selection_Click" ID="Select"></asp:RadioButton>
</ItemTemplate>
</asp:TemplateColumn>
I've tried forcing a row to a particular background color in the OnCheckedChanged event and that doesn't even work after postback. I do have my <SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateGray"></SelectedItemStyle> tag defined.
Thanks.
--Lenard