DataGridView checkbox not displayed when font size is large

I have a DataGridView that contains two text columns and one column column. If the user increases the font size in Vista or Windows 7, the check box no longer appears. I installed AutoSizeRowsMode for AllCells and fixed it initially. However, the lines in the grid are edited, and if the user clicks on the line to edit it, the checkbox disappears again until the line is selected.

I was not able to find any resources on the Internet on this issue, so I am surprised that no one has ever seen this before. The line height is set to 21, so the size of the flag is 17 ...

This is a DLL version of Outlook, so I cannot use SetProcessDPIAware ().

+4
source share
1 answer

I ran into this just now and spent almost an hour trying to figure out where my code was wrong, why the checkboxes didn't appear. Fortunately, in my case, setting AUtoSizerowsMode for all cells seems to fix this, even during editing. (This is on Windows 7 (

+4
source

Source: https://habr.com/ru/post/1301866/


All Articles