Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid control headers
Message
From
25/05/2001 10:35:40
 
 
To
25/05/2001 10:19:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00511501
Message ID:
00511517
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
Hi!

Quite messy. There are no other simple way but just use the special character at fromt of the field caption. More complex way is to use some custom control put over the grid header. However, it requires a lot of complex programming to position it corrcetly and refresh it correctly (grid tends to make its headers always on top without aware that some other controls cover it, so the arrow is hidden in certain cases). I id managed to make this, the code was improved over 3 years and now works ok and all issues are workarounded with support from the application framework. If you're interested, I can describe more. In particular, development of such thing will require following things:
- put a grid into the container to track its focus leaving, or refresh grid sorting indicator in each control that receives focus (we used second approach - we have a framework, forst is good only when you have no existing grids in the application or build a new application)
- remove index used for sorting for duration of the transaction
- make a special header class to catch certain events and refresh sorting arrow properly to the changes of the column widths/height
- make a grid class with plenty of events catching and functionality to support sorting and arrow indicator
- make arrow indicator (a separate story).

If you want, I can even send you a screenshot of how sorting arrow looks like in our application.

HTH.

>in a grid control, is there anyway to add little arrows in the header to indicate which field is sorted in what order?
>
>thanks
>- jer
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform