Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How can I display an editable checkbox in a gridview

How can I display an editable checkbox in a gridview

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sebastian T Xavier
    wrote on last edited by
    #1

    Hi I have added a gridview with a check box field. But that checkbox is read only. I can not change the status of the checkbox. what could be the reason Thanks Sebastian

    modified on Saturday, January 10, 2009 5:26 AM

    A 1 Reply Last reply
    0
    • S Sebastian T Xavier

      Hi I have added a gridview with a check box field. But that checkbox is read only. I can not change the status of the checkbox. what could be the reason Thanks Sebastian

      modified on Saturday, January 10, 2009 5:26 AM

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Sebastian T Xavier wrote:

      I have added a gridview with a check box field. But that checkbox is read only. I can not change the status of the checkbox. what could be the reason

      my be the reason is Checkbox Enabled property set as false.

            **Enabled="false"** />
      

      please check !!

      cheers, Abhijit CodeProject.Com MVP

      S 1 Reply Last reply
      0
      • A Abhijit Jana

        Sebastian T Xavier wrote:

        I have added a gridview with a check box field. But that checkbox is read only. I can not change the status of the checkbox. what could be the reason

        my be the reason is Checkbox Enabled property set as false.

              **Enabled="false"** />
        

        please check !!

        cheers, Abhijit CodeProject.Com MVP

        S Offline
        S Offline
        Sebastian T Xavier
        wrote on last edited by
        #3

        <asp:CheckBoxField HeaderText="Add" DataField="Add" /> this is my code, I am in asp.net 2.0 I didn't see any such property PLease guide Sebastian

        A R 2 Replies Last reply
        0
        • S Sebastian T Xavier

          <asp:CheckBoxField HeaderText="Add" DataField="Add" /> this is my code, I am in asp.net 2.0 I didn't see any such property PLease guide Sebastian

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          ok. I would suggest you to use GridView Template Field Rather than using CheckBoxField. It will solve your problem. Please let me know when done !! cheers, Abhijit CodeProject.Com MVP

          1 Reply Last reply
          0
          • S Sebastian T Xavier

            <asp:CheckBoxField HeaderText="Add" DataField="Add" /> this is my code, I am in asp.net 2.0 I didn't see any such property PLease guide Sebastian

            R Offline
            R Offline
            Rajdev Ramasamy
            wrote on last edited by
            #5

            Can you post the full definirion of the grid? Thanks, Rajdev KR

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups