Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Setting the colour of a Column Header
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Setting the colour of a Column Header

 Post Reply Post Reply
Author
Message
AndyWilton View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2008
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyWilton Quote  Post ReplyReply Direct Link To This Post Topic: Setting the colour of a Column Header
    Posted: 08 September 2009 at 4:06pm
Hi All,
 
Does anybody know of a way to set / change either the caption or background colour of a column header?
 
What I'd quite like to do is to change the colour when a Column is sorted.
 
Thanks in advance,
 
Regards,
 
Andy
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2009 at 1:45pm
Hi Andy,
 
I'm not that familiar with Markup but you could use a markup string for changing color of column caption:
 
With .Columns.Add(0, "", 100, True)
        .Caption = "<TextBlock><Run Foreground='Black' Text= 'Name of column'/></TextBlock>"
End With 
 
if a column is sorted: wndReportControl.Columns(currentSortedColumn).Caption = "<TextBlock><Run Foreground='Red' Text= 'Name of column'/></TextBlock>"
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
AndyWilton View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2008
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyWilton Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2009 at 8:51am
Hi Aaron,
 
Interesting idea - I shall give it a go and let you know what I find.
 
Regards,
 
Andy
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.