Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Sort Column based on Right Clck Menu Option ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sort Column based on Right Clck Menu Option ?

 Post Reply Post Reply
Author
Message
shanmuganathan View Drop Down
Groupie
Groupie
Avatar

Joined: 01 December 2006
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote shanmuganathan Quote  Post ReplyReply Direct Link To This Post Topic: Sort Column based on Right Clck Menu Option ?
    Posted: 23 March 2010 at 9:29am
Hi All,

I have created a sample application using CXTPReportControl which contains 5 columns
and added default data in the grid.

Scenario 1:
When i click on the specific column header(Left Mouse click) the sorting works fine.

Scenario 2:
I have added all column names in a menu option.
When i right click on any column header and select a menu option for example company,
i want the data in the grid to be sorted based on company column?

I am using Xtreme ToolkitPro v12.1.1.

Please let me know your suggestion about the same.

Thanks in Advance.

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2010 at 3:44pm
Hi;

Take a look at CXTPReportControl::GetColumns()->GetSortOrder()->Add()
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.