<%-- In IE6, in edit mode, the checkbox isn't visible --%>
<asp:DetailsView ID="MyDetailsView" runat="server" Height="50px" Width="100%"
AutoGenerateRows="False" SkinID="detailsViewSkin" DataKeyNames="SerialNumber"
DataSourceID="DetailsObjectDataSource">
<asp:CheckBoxField DataField="Active" HeaderText="Active" SortExpression="Active" />
</asp:DetailsView>
views:
849answers:
2The only thing that's really standing out here is that you're missing the Fields tag in your gridview. Other than that, nothing looks out of the ordinary - and I use DetailsViews all the time with no big problems in IE6.
<%-- In IE6, in edit mode, the checkbox isn't visible --%>
<asp:DetailsView ID="MyDetailsView" runat="server" Height="50px" Width="100%" AutoGenerateRows="False" SkinID="detailsViewSkin" DataKeyNames="SerialNumber" DataSourceID="DetailsObjectDataSource">
<Fields>
<asp:CheckBoxField DataField="Active" HeaderText="Active" SortExpression="Active" />
</Fields>
</asp:DetailsView>
I just had a need for this again, so retested in IE6, and my CheckBoxFields work fine. I'm wondering if there is something in CSS or your skin file that is interfering with IE6.
Thanks for reply. I do have the Fields tag in the detailsview. I left it out of my code post for the sake of keeping it short. Removing the tags produces lots of errors in VS2008.
Since I first posted this question, I've discovered the same problem with radio buttons in a gridview as well as on a form. Is it possible something on the server is preventing checkboxes and radiobuttons from displaying in IE6 (something that's been fixed in IE7)?