Print Page | Close Window

BUG: Drag&drop from/to header rows

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=9764
Printed Date: 02 May 2024 at 11:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: Drag&drop from/to header rows
Posted By: znakeeye
Subject: BUG: Drag&drop from/to header rows
Date Posted: 02 March 2008 at 2:14pm
wndReport.EnableDragDrop(xtpReportAllowDrop | xtpReportAllowDragMove);
GetHeaderRecords()->Add(new CMyRecord());
ShowHeaderRows(TRUE);
 
Now, if I drag items from my header to the rows below it, it looks like the drop is successful, but it is not. The problem, I think, is an old check in CXTPReportRecords::Move():
 
void CXTPReportRecords::Move(int nIndex, CXTPReportRecords* pRecords)
{
...
if (pRecord->m_pRecords != this)
    continue;
...
}
 
Please fix this! (In my case I want to disable dragging from and to the header rows.)



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