Solved

Sorting a heirarchical flexgrid

Posted on 2006-06-23
9
154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

763 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