{newbie} GridView is readonly

J

Jeff

ASP.NET 2.0

I've got a GridView on a webpage. This GridView contains a CheckBoxField.
When I run the webpage nothing happens when I click on the checkbox, it
looks like the GridView is readonly or something like that. When I click on
the checkbox I want the checkbox to be checked/unchecked.

This the markup of my GridView:
<asp:GridView ID="gridInbox" SkinID="grid" runat="server"
DataSourceID="odsInbox" AutoGenerateColumns="false" GridLines="Vertical"
EmptyDataText="You have no records" BorderStyle="Solid" >
<Columns>
<asp:BoundField HeaderText="Sender" DataField="Name"
HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle"
ItemStyle-Width="160px" />
<asp:BoundField HeaderText="Subject" DataField="Subject"
HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle" />
<asp:BoundField HeaderText="Date" DataField="Date"
HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle"
HtmlEncode="false" ItemStyle-Width="80px"
DataFormatString="{0:dd/MM/yyyy}"/>
<asp:CheckBoxField HeaderText="Delete" DataField="Delete"
HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle"
ItemStyle-Width="80px" />
</Columns>
<AlternatingRowStyle CssClass="alternativeRowStyle" />
<RowStyle CssClass="rowStyle" />
<HeaderStyle CssClass="headerStyle" />
</asp:GridView>

Any suggestions??

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top