You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Hi,
is there any way to change the font of column/row header?
because i cannot find a "Font" property in the ReoGridColumnHeader/ReoGridRowHeader class.
thanks.
Offline
Currently cannot change the font of headers. We will try to add the Font property in future versions.
Offline
Hi, is there any update to whether this will be added in a future version or when it might be expected? Thanks
Offline
This may need more time, perhaps available in 1.4.0 or 1.5.0.
Edit: Since Font resource is fully managed by ReoGrid for both Windows Form and WPF platform.
There might be FontName, FontSize, FontStyle properties rathar than single Font object property.
In the future we plan to add Style object instead of these Font properties and TextColor for headers, so it need more time to be designed and implemented.
Last edited by Jingwood (2016-05-07 00:49:11)
Offline
Thanks Jing, that will be a nice addition.
Something related to this: I'd like to do stuff with the top left corner square of the grid (is it called lead header?). Just simple things like add text or change the background colour of it. Is this something you would consider having implemented in a future version?
Thanks
Offline
OK, there will be an interface in future version that can access to the top left corner square object to set text, background colors, or you may be able to have owner drawing for display anything you want. I can't ensure the release day but I will make it available as soon as possible.
Offline
Thanks Jing, that will be great.
Offline
Hi Jing, I notice there is now a Style object for Column Headers, that's great. When I do:
grid.ColumnHeaders(0).Style.BackColor = Graphics.SolidColor.LightGreen
This changes the back colour of all the cells in the column. Is there a way to instead change the font/style of just the top row i.e. the row showing the names of the columns?
Offline