ComponentFactory / Krypton

Krypton WinForms components for .NET
BSD 3-Clause "New" or "Revised" License
1.88k stars 691 forks source link

Header Text on KryptonDataGridView vanished in certain circumstances #221

Open almendieta opened 3 years ago

almendieta commented 3 years ago

If the header text in KryptonDataGridView is NOT showing, and you don't care about using ColumnHeadersHeightSizeMode in AutoSize, you'll solve this issue. But, if you plan to use EnableResizing or DisableResizing I've got bad news for you: header text won't show anymore. No idea about how to solve dirtying my hands in the code, sorry, am in a hurry.

01 2

Smurf-IV commented 3 years ago

This looks ike another clipping problem. Like I had to solve for labels a long while ago. What Krypton does by default, is, if the text does not fit, then do not draw anything.. It's a bit bad. Solution, Find the Text drawing routine for DataGridView and draw regardless (if memory serves - See AcurateText class )

@almendieta - You need to state what version you are using, please?

almendieta commented 3 years ago

Thanks for your ping, @Smurf-IV!, I will check it in the source. I'm using v 4.5, but tried downloading current version in here, and happened the same exactly. Sorry for the late response.