Print Page | Close Window

Setting the colour of a Column Header

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15135
Printed Date: 02 June 2024 at 1:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Setting the colour of a Column Header
Posted By: AndyWilton
Subject: Setting the colour of a Column Header
Date 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



Replies:
Posted By: Aaron
Date 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....


Posted By: AndyWilton
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net