Print Page | Close Window

Design-flaw: CXTPReportControl::OnBeginDrag

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=9760
Printed Date: 27 May 2024 at 5:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Design-flaw: CXTPReportControl::OnBeginDrag
Posted By: znakeeye
Subject: Design-flaw: CXTPReportControl::OnBeginDrag
Date Posted: 02 March 2008 at 7:05am
Consider the code in CXTPReportControl::OnBeginDrag:
 
for (int i = nCount - 1; i >= 0; i--)
{
    CXTPReportRow* pRow = pSelectedRows->GetAt(i);
    if (pRow->IsGroupRow())
    {
        pRow->SetExpanded(TRUE);
        pRow->SelectChilds();
    }
}
 
What if I do not want my group rows to expand when dragging? This should be customizable. As it is now, I have to replace the whole function in my report control. Not good



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