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. Windows Forms
  4. check mark not displaying when unbound boolean datagrid column is checked

check mark not displaying when unbound boolean datagrid column is checked

Scheduled Pinned Locked Moved Windows Forms
questioncsscom
2 Posts 1 Posters 7 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
    dove11
    wrote on last edited by
    #1

    I have a windows form with a datagrid control. I bind the grid to my datasource and then add 2 unbound boolean columns. I create a tablestyle so that I can display these columns (Edit, Delete) in columns 0 and 1 before the bound columns. I can check the check box in the column and it branches to where I want it to go, but unless the row and column coordinates are (0,0) it does not display the check mark until I exit my other app and return to the grid. I displayed the value in the column and it is set to True. I added the code from http://msdn2.microsoft.com/en-us/library/ms996485.aspx to make the check box respond to one click. How do I get it to show the mark prior to the DataGrid MouseUp Event? That's where I branch to my other app. I have turned off tristate. I want the user to see the check mark when they first click the check box. Thanks.

    D 1 Reply Last reply
    0
    • D dove11

      I have a windows form with a datagrid control. I bind the grid to my datasource and then add 2 unbound boolean columns. I create a tablestyle so that I can display these columns (Edit, Delete) in columns 0 and 1 before the bound columns. I can check the check box in the column and it branches to where I want it to go, but unless the row and column coordinates are (0,0) it does not display the check mark until I exit my other app and return to the grid. I displayed the value in the column and it is set to True. I added the code from http://msdn2.microsoft.com/en-us/library/ms996485.aspx to make the check box respond to one click. How do I get it to show the mark prior to the DataGrid MouseUp Event? That's where I branch to my other app. I have turned off tristate. I want the user to see the check mark when they first click the check box. Thanks.

      D Offline
      D Offline
      dove11
      wrote on last edited by
      #2

      sorry. This is VB .NET.

      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