Print Page | Close Window

How to set the Row number dynamic?

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=5404
Printed Date: 24 November 2024 at 2:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set the Row number dynamic?
Posted By: heartofdra
Subject: How to set the Row number dynamic?
Date Posted: 02 November 2006 at 3:22am
  
  According to u demo , u set the row number like below:
 
 m_wndReport.SetVirtualMode(new   CVirtualRecord(),     6);
 
So if I want change the row number during the software is running, how to do it ???
 
Also , How  about  the   column??
 



Replies:
Posted By: sserge
Date Posted: 02 November 2006 at 4:05am
Our demo does have a small dialog where you can change a number of rows -- try looking at how is it implemented there...

--
WBR,
Serge


Posted By: heartofdra
Date Posted: 05 November 2006 at 9:42pm
 Thanks https://forum.codejock.com/member_profile.asp?PF=862&FID=38 - sserge .
 
  Can u tell me which  the "small dialog " is ?
 
   
   Maybe the "ReportSample" also can be a one ——its "filter" function can change the rows dynamic .  But , I can't find the code(in my mind ,it is a function ) which response  this "filter" function ,  can you tell me your train of thoughts??
 


Posted By: sserge
Date Posted: 06 November 2006 at 11:17am
See VirtualRows sample, menu Report / Change Rows count.

The method look like the following:

void CVirtualListView::OnReportSetrowscount()
{
    CDialogRowsCount dr;
    if (dr.DoModal() == IDOK)
    {
        GetReportCtrl().SetVirtualMode(new CVirtualRecord(), dr.m_nRowsCount);
        GetReportCtrl().Populate();
    }

}


--
WBR,
Serge



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