Print Page | Close Window

[CLOSED] wrong index return by XTPReportControl

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=17605
Printed Date: 26 April 2024 at 10:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [CLOSED] wrong index return by XTPReportControl
Posted By: gohain
Subject: [CLOSED] wrong index return by XTPReportControl
Date Posted: 25 November 2010 at 12:07pm
Hello,

I am using Xtrme toolkit pro 9.70 version from codejack. I am adding the hyperlink to the report control. It seems the index return by report control is not consistent and we can see lot of issues of getting wrong data displayed to the user. Specially, if there are large number of data then the index returns incorrectly.
Is there any known issues for this?

Thanks,
Rajib

Following are the code snippets :-
   
void CResultView::OnReportHyperlinkClick(NMHDR * pNotifyStruct, LRESULT * )
{
   XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;
     if (pItemNotify==NULL)
     {
            return;
     }
     if (pItemNotify->nHyperlink < 0)
     {
            return;
     }
     int rowNumber = pItemNotify->pRow->GetIndex();
     int columnNumber = pItemNotify->pColumn->GetItemIndex();
     if ((rowNumber<0) || (columnNumber<0))
          return;
}
   
     



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