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. how to add checkbox column in datagrid

how to add checkbox column in datagrid

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

    i want to add first column of datagrid as checkedbox against every row of datagrid. then from the list i will select some checkboxes according to need.how i will implement this thing plz tell me any simple way. reply soon.

    E 1 Reply Last reply
    0
    • I iramg

      i want to add first column of datagrid as checkedbox against every row of datagrid. then from the list i will select some checkboxes according to need.how i will implement this thing plz tell me any simple way. reply soon.

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      Can you elaborate?

      As of how to accomplish this, have you ever tried Google?

      I 1 Reply Last reply
      0
      • E Ed Poore

        Can you elaborate?

        As of how to accomplish this, have you ever tried Google?

        I Offline
        I Offline
        iramg
        wrote on last edited by
        #3

        yes i have tried all even i read many articales in codeproject also. they are very complex and webbased. i dont understand them i read one artical http://www.codeproject.com/aspnet/ChkBoxInGrid.asp i want to do the same thing but in windows form. i dont understand how to bind checkbox with datagrid.and i want to display checkboxe with every row of datagrid. so plz help me

        E 1 Reply Last reply
        0
        • I iramg

          yes i have tried all even i read many articales in codeproject also. they are very complex and webbased. i dont understand them i read one artical http://www.codeproject.com/aspnet/ChkBoxInGrid.asp i want to do the same thing but in windows form. i dont understand how to bind checkbox with datagrid.and i want to display checkboxe with every row of datagrid. so plz help me

          E Offline
          E Offline
          Ed Poore
          wrote on last edited by
          #4

          To add a checkbox column just open the Column designer and add a column of type DataGridViewCheckBox. If you want to perform the selecting and deselecting etc, why you can just use Control and Shift combinations to achieve the same thing.  There should be a property called SelectedRows so you can enumerate them.

          As of how to accomplish this, have you ever tried Google?

          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