![]() |
Which Column is being Sorted By ? |
Post Reply ![]() |
Author | |
LeeHayton ![]() Senior Member ![]() ![]() Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
![]() ![]() ![]() ![]() ![]() Posted: 02 February 2006 at 10:31am |
In Outlook the rows are grouped by the Column Header that is clicked I want to recreate the same functionality. How can I determine which column has been clicked - the control (v9.61) only triggeres as the column header is "Right Clicked" - which is really no good. So - within the wndReportControl_SortOrderChanged Sub I would like to determine which column is the sorted column and then use that as the groupable column. e.g. WndReportControl.GroupsOrder.Add TheColumnWeWant TIA Lee |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Take a look at this:
Private Sub wndReportControl_SortOrderChanged() Debug.Print wndReportControl.SortOrder.Column(wndReportControl.SortOrder .Count - 1).Caption & " was just sorted" End Sub |
|
![]() |
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 |