Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header Text on KryptonDataGridView vanished in certain circumstances #221

Open
almendieta opened this issue May 9, 2021 · 2 comments
Open

Comments

@almendieta
Copy link

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
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants