Print Page | Close Window

GetGroupCaption suggestion

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=16386
Printed Date: 20 June 2025 at 10:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetGroupCaption suggestion
Posted By: znakeeye
Subject: GetGroupCaption suggestion
Date Posted: 07 March 2010 at 5:18pm
Design flaw in 13.3.1?
 
virtual CString GetGroupCaption(CXTPReportColumn* pColumn);
 
should be

virtual CString GetGroupCaption(CXTPReportColumn* pColumn, CXTPReportRow *pRow);

That way, you can read the items of the current row (such as number of children in a group) and format the caption.
 
No?


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: znakeeye
Date Posted: 25 June 2010 at 12:06pm
I still find this tricky. How would you format groups as such: "Blablabla (42 children)"
 
... when you don't know the number of children?


-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Oleg
Date Posted: 28 June 2010 at 2:11am
Hi,

You can override CreateGroupRow and return your own Group Row class with own GetCaption method.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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