Checkbox not displaying in DetailsView

Discussion in 'ASP .Net' started by Peter, Jun 27, 2009.

  1. Peter

    Peter Guest

    Hi

    I have placed a CheckBox control inside my GridView as below but the checkbox is not displayed in the column. Anyone know why that
    happens ?

    <Columns>
    <asp:TemplateField HeaderText="" ItemStyle-Width="20px">
    <asp:ItemTemplate>
    <asp:CheckBox ID="cbTest" runat="server" AutoPostBack="false" />
    </asp:ItemTemplate>
    </asp:TemplateField>
    ...
    </Columns>


    Thanks
    Peter
     
    Peter, Jun 27, 2009
    #1
    1. Advertising

  2. Peter

    Peter Guest

    Anyone know why the CheckBox won't appear at all in my GridView ?

    Thanks
    Peter

    "Peter" <> wrote in message news:...
    > Hi
    >
    > I have placed a CheckBox control inside my GridView as below but the checkbox is not displayed in the column. Anyone know why
    > that happens ?
    >
    > <Columns>
    > <asp:TemplateField HeaderText="" ItemStyle-Width="20px">
    > <asp:ItemTemplate>
    > <asp:CheckBox ID="cbTest" runat="server" AutoPostBack="false" />
    > </asp:ItemTemplate>
    > </asp:TemplateField>
    > ..
    > </Columns>
    >
    >
    > Thanks
    > Peter
    >
     
    Peter, Jun 27, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. K B
    Replies:
    1
    Views:
    3,563
    Craig Deelsnyder
    Apr 19, 2006
  2. JJ
    Replies:
    1
    Views:
    376
  3. donet programmer
    Replies:
    0
    Views:
    811
    donet programmer
    Oct 25, 2007
  4. Feege
    Replies:
    0
    Views:
    502
    Feege
    Dec 20, 2005
  5. whyman
    Replies:
    4
    Views:
    991
    whyman
    Mar 23, 2006
Loading...

Share This Page