![]() |
Setting the colour of a Column Header |
Post Reply ![]() |
Author | |
AndyWilton ![]() Groupie ![]() ![]() Joined: 03 June 2008 Status: Offline Points: 82 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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.... |
|
![]() |
|
AndyWilton ![]() Groupie ![]() ![]() Joined: 03 June 2008 Status: Offline Points: 82 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |