Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Report Control: Manual vs. user sorting
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control: Manual vs. user sorting

 Post Reply Post Reply
nighthawk View Drop Down
Senior Member
Senior Member

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Topic: Report Control: Manual vs. user sorting
    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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.063 seconds.