Print Page | Close Window

Sort Column based on Right Clck Menu Option ?

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=16494
Printed Date: 29 September 2024 at 9:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sort Column based on Right Clck Menu Option ?
Posted By: shanmuganathan
Subject: Sort Column based on Right Clck Menu Option ?
Date 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.




Replies:
Posted By: mgampi
Date Posted: 23 March 2010 at 3:44pm
Hi;

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


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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