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. datagridview checkbox

datagridview checkbox

Scheduled Pinned Locked Moved C#
comhostingtutorialquestion
4 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.
  • Y Offline
    Y Offline
    Yulianto
    wrote on last edited by
    #1

    Anybody knows how to set up checkbox column in a dataGridView, after setting the dataGridView1.DataSource? At first the datagridview does not have any column, so after setting the dataSource it will create column automatically, but I don't know how to automatically set the column to be checkbox type. Thanks.


    Don't work hard, but work effectively. Web hosting | invest money | Option strategy

    L 1 Reply Last reply
    0
    • Y Yulianto

      Anybody knows how to set up checkbox column in a dataGridView, after setting the dataGridView1.DataSource? At first the datagridview does not have any column, so after setting the dataSource it will create column automatically, but I don't know how to automatically set the column to be checkbox type. Thanks.


      Don't work hard, but work effectively. Web hosting | invest money | Option strategy

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      after set the datasource, add a new column from type DataGridViewCheckBoxColumn.

      Y 1 Reply Last reply
      0
      • L Lost User

        after set the datasource, add a new column from type DataGridViewCheckBoxColumn.

        Y Offline
        Y Offline
        Yulianto
        wrote on last edited by
        #3

        There's no need to add a new one. after setting the data source, the column is already there. I just need to change its type to be checkbox, but couldn't find a way to do that.


        Don't work hard, but work effectively. Web hosting | invest money | Option strategy

        D 1 Reply Last reply
        0
        • Y Yulianto

          There's no need to add a new one. after setting the data source, the column is already there. I just need to change its type to be checkbox, but couldn't find a way to do that.


          Don't work hard, but work effectively. Web hosting | invest money | Option strategy

          D Offline
          D Offline
          dojohansen
          wrote on last edited by
          #4

          Why not simply define the bound columns at design time instead of autogenerating them?

          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