Print Page | Close Window

Problem in Report Control

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=15516
Printed Date: 06 May 2024 at 6:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem in Report Control
Posted By: xzoom
Subject: Problem in Report Control
Date Posted: 01 November 2009 at 1:52am

Hi,

I use [C# language] and i write this code

        private void reportControl_RowDbClick(object sender, AxXtremeReportControl._DReportControlEvents_RowDblClickEvent e)
        {

           ReportRecords Record = reportControl.Records;
        
            MessageBox.Show("show accountID=" + Record[e.row.Index][0].Value);
        }

the problem it is not in the code but when i run the Application and load data into reportControl records and then Dbclick on row or record it will send to me the message with accountID value with right value but when i resort the columns when i do DBclick agian in the same record after resort it will give me Different value after sorting , i hope understand me




Replies:
Posted By: Baldur
Date Posted: 05 November 2009 at 10:06am
Hello,
use e.row.Record because the row.index differs from Record.Index after sort, but each row knows his record.


Posted By: xzoom
Date Posted: 05 November 2009 at 2:25pm
thank u



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