Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - How to sort column after populating?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to sort column after populating?

 Post Reply Post Reply
Author
Message
Alexey2 View Drop Down
Senior Member
Senior Member


Joined: 24 September 2006
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alexey2 Quote  Post ReplyReply Direct Link To This Post Topic: How to sort column after populating?
    Posted: 12 January 2008 at 5:39pm
Is it possible?
Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2008 at 2:52pm
try :
 
nCol = 3

xTremeReportControl.SortOrder.DeleteAll()

.xTremeReportControl.columns.Column(nCol).SortAscending = true

xTremeReportControl.SortOrder.Add( xTremeReportControl.columns.Column(nCol) )

xTremeReportControl.populate()

 

Back to Top
Alexey2 View Drop Down
Senior Member
Senior Member


Joined: 24 September 2006
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alexey2 Quote  Post ReplyReply Direct Link To This Post Posted: 18 January 2008 at 3:45am
xTremeReportControl.SortOrder.Add( xTremeReportControl.columns.Column(nCol) )
Wrong code.
Back to Top
Alexey2 View Drop Down
Senior Member
Senior Member


Joined: 24 September 2006
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alexey2 Quote  Post ReplyReply Direct Link To This Post Posted: 18 January 2008 at 3:48am
xTremeReportControl.SortOrder.Add xTremeReportControl.columns.Column(nCol)
This is ok. Thank you!
Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2008 at 1:37pm
The code was ok ...  for MS Visual Foxpro  :)
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.172 seconds.