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. Unbound checkbox column in datagrid

Unbound checkbox column in datagrid

Scheduled Pinned Locked Moved C#
questiondatabasehelp
2 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.
  • B Offline
    B Offline
    blakeb_1
    wrote on last edited by
    #1

    Hello, I am trying to implement a checkbox column in a datagrid that will provide the user the ability of checking certain rows that they want to perform some action on. Here is my problem. Originally, I just added a new row in my database called "Checked". This seemed to be working okay until I started trying to implement a "Select All" functionality. In order to do this, I have to loop through each row in my datatable and set the value for the "Checked" column to true. This takes forever because there are 13,000 rows in the table. My question is this: is there any way to add a column to a datagrid without having it bound to a column in the datatable? What other options are there for doing something like this? I guess I could just use the regular select functionality of the datagrid, but this requires the user to hold down control to select multiple rows. Any ideas? Thanks, Blake

    S 1 Reply Last reply
    0
    • B blakeb_1

      Hello, I am trying to implement a checkbox column in a datagrid that will provide the user the ability of checking certain rows that they want to perform some action on. Here is my problem. Originally, I just added a new row in my database called "Checked". This seemed to be working okay until I started trying to implement a "Select All" functionality. In order to do this, I have to loop through each row in my datatable and set the value for the "Checked" column to true. This takes forever because there are 13,000 rows in the table. My question is this: is there any way to add a column to a datagrid without having it bound to a column in the datatable? What other options are there for doing something like this? I guess I could just use the regular select functionality of the datagrid, but this requires the user to hold down control to select multiple rows. Any ideas? Thanks, Blake

      S Offline
      S Offline
      sreejith ss nair
      wrote on last edited by
      #2

      hi, Please check this datagridgirls.com. This site contain few articles which deals datagrid customization. Sure you will get solution.:-O ************************** S r e e j i t h N a i r **************************

      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