ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

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.

https://github.com/unvell/ReoGrid/issues

#1 2016-01-11 08:23:15

williamlee1982
Member
Registered: 2016-01-06
Posts: 8

how to change the font of column/row header

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

#2 2016-01-11 13:06:30

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: how to change the font of column/row header

Currently cannot change the font of headers. We will try  to add the Font property in future versions.

Offline

#3 2016-05-05 14:34:54

danny
Member
Registered: 2016-05-05
Posts: 17

Re: how to change the font of column/row header

Hi, is there any update to whether this will be added in a future version or when it might be expected? Thanks

Offline

#4 2016-05-07 00:42:56

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: how to change the font of column/row header

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

#5 2016-05-13 15:01:03

danny
Member
Registered: 2016-05-05
Posts: 17

Re: how to change the font of column/row header

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

#6 2016-05-24 09:33:55

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: how to change the font of column/row header

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

#7 2016-05-26 13:08:10

danny
Member
Registered: 2016-05-05
Posts: 17

Re: how to change the font of column/row header

Thanks Jing, that will be great.

Offline

#8 2017-01-18 16:57:07

danny
Member
Registered: 2016-05-05
Posts: 17

Re: how to change the font of column/row header

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

Board footer

Powered by FluxBB