Force a Sort on the Grid |
Post Reply |
Author | |
PurposeSoftware
Newbie Joined: 03 June 2011 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 23 September 2011 at 7:36am |
I add a record to the grid, do a Populate but the new item isn't inserted into the correct position.
If I click the column header twice to sort (1st time to sort the wrong way then the 2nd to sort the right way) it will sort correctly. So, how do I force a Sort of the grid. Ie. wndReport.Sort Colin PurposeSoftware |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Seems you have same problem as: http://forum.codejock.com/forum_posts.asp?TID=19020&title=new-row-does-not-sort-properly
If a column is sorted (ASC or DESC) and after call .Populate the grid is sorted again. Can you upload some kind of test project which shows your problem?
Sort columns by code: use SortOrder collection. Here's Sample from CJ (see Help)
Example[Sorting columns in the ReportControl (Visual Basic)] This sample illustrates how to sort the columns in the ReportControl. If you had 8 columns added to the ReportControl, this sample would sort the columns first by the column at Itemindex 7, then by the column at ItemIndex 2, then by the column at ItemIndex 5.
See AlsoReportColumnOrder Collection | ReportControl SortOrder Property | ReportControl GroupsOrder Property Example |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |