Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checkbox added to grid is invisible until clicked

Sydney Savoy

Programmer
Jan 15, 2024
3
CA
I've been tasked with adding the ability to select multiple rows to a program's existing grid control, so I added a new column with a linked checkbox, patterned off (but not copied from) another grid in the same program.

I got the checkbox working all right, save for one problem: until it is clicked, the checkbox is invisible.

1749248783848.png

Clicking the checkbox once causes it to appear; you have to click it a second time to actually select or deselect it. Once selected the program does correctly remember its checked status.

It's not a matter of the checkbox having having a value of "Not Valued". Once the checkbox is checked, if I change to another row, then change back, I have to click it twice to un-check it.

The one difference I can find between this control and the working one is that when I added a new column to the existing grid, it came with a text box control. I have hidden and disabled the text box control, but I can't figure out how to actually delete it.

I can set styles or colours on the checkbox, but they don't show up, even when it's visible.
 
Last edited:

Part and Inventory Search

Sponsor

Back
Top