PC Review


Reply
Thread Tools Rate Thread

Datagrid: Individual forecolors in columnheaders

 
 
Martin Wolff
Guest
Posts: n/a
 
      4th Sep 2003
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.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
One Handed Man
Guest
Posts: n/a
 
      4th Sep 2003
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.


"Martin Wolff" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Martin Wolff
Guest
Posts: n/a
 
      5th Sep 2003

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.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid - update individual row cwineman Microsoft Dot NET Framework Forms 0 2nd Mar 2006 04:41 PM
Controlling individual DataGrid cells msnews.microsoft.com Microsoft Dot NET Framework 2 24th Dec 2004 08:31 AM
Datagrid columnheaders EMW Microsoft VB .NET 4 23rd Nov 2003 08:12 AM
Individual Datagrid Column Width Mike Fellows Microsoft VB .NET 3 13th Oct 2003 12:57 PM
set BackColor for an individual datagrid row Nathan Microsoft Dot NET Compact Framework 0 15th Jul 2003 07:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:03 AM.