Print Page | Close Window

Report Control: Manual vs. user sorting

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2247
Printed Date: 19 April 2024 at 11:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control: Manual vs. user sorting
Posted By: nighthawk
Subject: Report Control: Manual vs. user sorting
Date Posted: 18 May 2005 at 5:52am
I want to be able to manually define the default sort that is applied to a Report Control but I also don't want the user to be able to change the sort away from the default I set.  I have the following code:

    ReportControl.SortOrder.add ReportControl.Columns(3)
    ReportControl.SortOrder(3).SortAscending = True

    ReportControl.AllowColumnSort = False

The problem is that whenever I add the first two lines to set the default sort, the third line that disables user sorting appears to be ignored.  I do get the correct default sort but the user is still able to change the sort as desired.  Is this a bug or is there a workaround?



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