Print Page | Close Window

Does CXTListCtrl support alternate row color ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7664
Printed Date: 13 November 2025 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Does CXTListCtrl support alternate row color ?
Posted By: evoX
Subject: Does CXTListCtrl support alternate row color ?
Date Posted: 25 July 2007 at 11:54am
Does CXTListCtrl support alternate row color ?



Replies:
Posted By: Simon HB9DRV
Date Posted: 25 July 2007 at 12:25pm
Yes

-------------
Simon HB9DRV


Posted By: evoX
Date Posted: 25 July 2007 at 12:33pm

and how can I do that with CXTListCtrl ? because I don't find any alternate row attribute for it.



Posted By: kstowell
Date Posted: 25 July 2007 at 3:23pm
Make sure you call EnableUserRowColor first:

m_listCtrl.EnableUserRowColor(true);


Then you can set the row color by calling SetRowColor for each row you want to have color:

m_listCtrl.SetRowColor(iItem, m_crRowText, m_crRowBack);


Also, look at the ListCtrl sample, you may find this helpful as well.

Kirk


Posted By: evoX
Date Posted: 25 July 2007 at 3:29pm
ok, thanks !



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