Datagrid: Individual forecolors in columnheaders

  • Thread starter Thread starter Martin Wolff
  • Start date Start date
M

Martin Wolff

Hi everybody,

in my datagrid I want to show the text in the columnheaders working as a
linklabel.
It is already working, doing different things depending on the
colheader, which has been clicked on.

But I'm only able to change the forecolor and font of all columnheaders
at one time (to simulate the linklabel behaviour).

What I now want is to set the color to blue (and font underlined) for
only one columnheader, when the mouse is moving over.

Nor was it possible for me to access the forecolor property of a
baseclass, either I could access the whole control (which should be of
label kind) by runnig through the subcontrols of the datagrid.

Thanks a lot for any help, hints or links,

regards,
Martin.
 
just a thought . . .

How about adding controls to the datagrid to be positioned over the column
headers. This way you can set up and event handler for those controls and
pass the message to the underlying control as required.

;-D



--
Regards - One Handed Man

Author : Fish .NET & Keep .NET
=========================================
This posting is provided "AS IS" with no warranties,
and confers no rights.
 
Thanks, for your answer.

I still thought about that way.

But if it is possible to access a single header control directly, I
would prefer to do so.

Anyhow,

waiting for new suggestions,
Martin.
 
Back
Top