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. Advertisements

  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. Advertisements

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. SirPoonga

    text for checkbox not displaying

    SirPoonga, Jan 19, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    390
    SirPoonga
    Jan 19, 2005
  2. tshad
    Replies:
    0
    Views:
    744
    tshad
    Apr 15, 2005
  3. Vikram

    disable checkbox list checkbox

    Vikram, Jan 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,574
    ThunderMusic
    Jan 25, 2006
  4. K B
    Replies:
    1
    Views:
    3,777
    Craig Deelsnyder
    Apr 19, 2006
  5. JJ
    Replies:
    1
    Views:
    427
  6. donet programmer
    Replies:
    0
    Views:
    925
    donet programmer
    Oct 25, 2007
  7. Feege
    Replies:
    0
    Views:
    743
    Feege
    Dec 20, 2005
  8. whyman
    Replies:
    4
    Views:
    1,348
    whyman
    Mar 23, 2006
Loading...