ComponentFactory / Krypton

Krypton WinForms components for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Header Text on KryptonDataGridView vanished in certain circumstances

almendieta opened this issue · comments

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

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?

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.