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
  1. Home
  2. General Programming
  3. C#
  4. datagridcheckbox in a datagrid

datagridcheckbox in a datagrid

Scheduled Pinned Locked Moved C#
question
3 Posts 2 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.
  • P Offline
    P Offline
    prithaa
    wrote on last edited by
    #1

    Hello, I have a datagridviewcheckboxcell in a datagrid which is displayed properly . I want a text next to the box. Which property should I use? Thank you Pritha

    OriginalGriffO 1 Reply Last reply
    0
    • P prithaa

      Hello, I have a datagridviewcheckboxcell in a datagrid which is displayed properly . I want a text next to the box. Which property should I use? Thank you Pritha

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      As far as I am aware, there is no property to put text beside the checkbox - the text goes into the column heading where it it less intrusive for the user. If you really must do this, you will probably have to create your own custom control, based on a DataGridViewCheckBoxCell, and incorporate the text yourself. I haven't tried this, so I have no idea what problems you are going to face. Are you sure you need it, given that you can only have true / false / grey in the checkbox anyway?

      If Barbie is so popular, why do you have to buy her friends? Eagles may soar, but weasels don't get sucked into jet engines. If at first you don't succeed, destroy all evidence that you tried.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      P 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        As far as I am aware, there is no property to put text beside the checkbox - the text goes into the column heading where it it less intrusive for the user. If you really must do this, you will probably have to create your own custom control, based on a DataGridViewCheckBoxCell, and incorporate the text yourself. I haven't tried this, so I have no idea what problems you are going to face. Are you sure you need it, given that you can only have true / false / grey in the checkbox anyway?

        If Barbie is so popular, why do you have to buy her friends? Eagles may soar, but weasels don't get sucked into jet engines. If at first you don't succeed, destroy all evidence that you tried.

        P Offline
        P Offline
        prithaa
        wrote on last edited by
        #3

        Thanks you for your reply I will have to derive a class from DataGridViewCheckBoxCell Thanks

        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