Solved

Sorting a heirarchical flexgrid

Posted on 2006-06-23
9
151 Views
Last Modified: 2010-04-07
Hi,

Is it possible to allow users to sort the columns of an MSHFlexgrid based on the header selected by the user? Is so, then can anyone point me in the right direction?

Thanks
0
Comment
Question by:pmud
  • 3
  • 3
9 Comments
 
LVL 9

Accepted Solution

by:
justchat_1 earned 250 total points
ID: 16972812
0
 
LVL 19

Assisted Solution

by:Stephen Manderson
Stephen Manderson earned 250 total points
ID: 17198186
Hi there

You can give this a try,

http://vb-helper.com/howto_sort_flexgrid.html

Either that or you could use textmatrix to get the column name and then use it in a sql query and refill the grid.
0
 
LVL 19

Expert Comment

by:Stephen Manderson
ID: 17442337
Hi there,

Did you manage to get this problem sorted ?

The about link I posted, I have tried and tested on a MSHFlexgrid and it works great.

Regards
Steve
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 9

Expert Comment

by:justchat_1
ID: 17442839
My link does also works exactly as your description says...if you had a problem with either of the links you can post that information.  Otherwise a moderator will be forced to award points for you...
0
 
LVL 19

Expert Comment

by:Stephen Manderson
ID: 17625613
Solutions provided by both myself and justchat - Recommend split points.

Steve
0
 
LVL 9

Expert Comment

by:justchat_1
ID: 17630858
agreed
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now