![]() |
Columns wise filterting |
Post Reply ![]() |
Author | |
vishal ![]() Groupie ![]() ![]() Joined: 22 August 2013 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() Posted: 22 August 2013 at 8:46am |
Dear All,
I want to apply filtering on multiple columns with different value. I add on header row but please help me how to apply multiple filter string on Report control with columns wise. Please help me for solve this issue. Thanks, |
|
Ahir Vishal D.
|
|
![]() |
|
dleibold ![]() Groupie ![]() ![]() Joined: 08 March 2010 Location: Canada Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
Look into CXTPReportControl::SetFilterText e.g. m_ReportControl.Populate(); // must call this to refresh the grid |
|
![]() |
|
Willowmaster ![]() Senior Member ![]() ![]() Joined: 12 July 2010 Location: Netherlands Status: Offline Points: 180 |
![]() ![]() ![]() ![]() ![]() |
That filters on all columns and you can't use different values for multiple columns. I think you have to code the filtering yourself by hiding the rows that don't match the criteria.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.3.1
Platform: Windows XP (32bit) - SP 3 (on VMWare) Language: Visual Basic 6.0 |
|
![]() |
|
vishal ![]() Groupie ![]() ![]() Joined: 22 August 2013 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Hello All,
Thanks to give me replay your replay is very helpful to me if possible then please give me sample code for filter on multiple columns into CXTPReportControl. Thanks for your help. |
|
Ahir Vishal D.
|
|
![]() |
|
Algae ![]() Senior Member ![]() ![]() Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
![]() ![]() ![]() ![]() ![]() |
Vishal - I accomplished this by modifying the CodeJock library filtering mechanism. What you want to look for is here. Observe the tokenizing:
File: XTPReportControl.cpp Function: BOOL CXTPReportControl::_ApplyFilter(CXTPReportRecord* pRecord, CString strFilterText, BOOL bIncludePreview) The trick that worked for me was to retain the filtered state of the record. if ( GetKeepFiltered() ) { if ( pRecord->IsFiltered() ) return TRUE; } else pRecord->SetFiltered(FALSE); Hopefully this will point you in the right direction and make your day easier. ![]() |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |