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. DataGridViewCheckBoxColumn on-click Event

DataGridViewCheckBoxColumn on-click Event

Scheduled Pinned Locked Moved C#
help
1 Posts 1 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.
  • D Offline
    D Offline
    dbetting
    wrote on last edited by
    #1

    I have a DataGridView with an unbound DataGridViewCheckBoxColumn in it. I'm able to manipulate everything as planned with one exception. I cannot seem to detect the appropriate value change when the user clicks the check box. The only event that comes close is CellEndEdit but the problem with it is that it only fires upon exit of the row...but it is the right value! My test is:   if (e.ColumnIndex == 0)   {     MessageBox(grdVwReadyOrders[0, e.RowIndex].FormattedValue.ToString()     + " " + e.RowIndex.ToString() + " " +     grdVwReadyOrders["OrderId", e.RowIndex].FormattedValue.ToString());   } I know I'm on the right row because I get the correct OrderId but regardless of which event I try, either 1) it doesn't fire upon checking or 2) it seems to only detect the value as it was when the user selected the row. What I need to do is detect, at the time the user checks the box, the value after it is checked. If it is checked, I need to do processing on other rows in the view. Doing it only as they leave the row is not user friendly. 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