Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - GroupBy Question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GroupBy Question

 Post Reply Post Reply
Author
Message
mahi1217 View Drop Down
Newbie
Newbie


Joined: 01 May 2009
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote mahi1217 Quote  Post ReplyReply Direct Link To This Post Topic: GroupBy Question
    Posted: 26 May 2009 at 4:07pm

When i do GroupBy by any column , i get something like this

 
 
In the above Visual we are grouping by " From " column ....
 
Is there any way to hide " From : "  in the area i circled out ??? ( i dont want to display Column name and the following Colon )
 
Back to Top
MGebler View Drop Down
Groupie
Groupie


Joined: 18 May 2006
Location: Germany
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote MGebler Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2009 at 7:13am
You have to override the 'GetGroupCAption' method of your CXTPReportRecordItem derived class.
For example:
 
class MyReportRecordItemText
: public CXTPReportRecordItemText
{
    // ...
    virtual CString GetGroupCaption(CXTPReportColumn* pColumn) 
    {
        return GetValue();
    }
};
 
I hope this will help you...
Back to Top
mahi1217 View Drop Down
Newbie
Newbie


Joined: 01 May 2009
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote mahi1217 Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2009 at 11:31am
Thank you very much .. This Helped ....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.102 seconds.