Print Page | Close Window

puzzle of the "ReportSample" demo

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=5445
Printed Date: 15 May 2024 at 4:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: puzzle of the "ReportSample" demo
Posted By: heartofdra
Subject: puzzle of the "ReportSample" demo
Date Posted: 07 November 2006 at 12:42am
 
 The "ReportSample"  demo :
 
    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??
 
  thx !



Replies:
Posted By: sserge
Date Posted: 11 November 2006 at 9:40am
Hi,

External interface is simple -- you set a corresponding Filter string editing controland then it does all the job by itself:

GetReportCtrl().GetColumns()->GetReportHeader()->SetFilterEditCtrl(&m_wndFilterEdit);


If you'd like to see the current filter or to modify it, look at methods CXTPReportControl::SetFilterText and CXTPReportControl::GetFilterText.

And if you'd like to modify filtering functionality, then take a look at CXTPReportControl::ApplyFilter method. You can override it in your custom ReportControl - derived class and implement in any way you'd like.

--
WBR,
Serge


Posted By: heartofdra
Date Posted: 15 November 2006 at 3:03am
Thx



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