Solved

Sorting a heirarchical flexgrid

Posted on 2006-06-23
9
153 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

786 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