Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mover bar functionality within a grid
Message
De
09/07/2003 12:35:11
Dave Nantais
Light speed database solutions
Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00804691
Message ID:
00808556
Vues:
27
>>I have a grid with many different controls in each column. I am happy with the way the grid presents the information about customer records to the user. However, I'd like 'mover bar' style functionality allowing a user drag and drop a records thus reordering the contents of the grid.
>>
>>The 'moverbar' property in the listbox makes this very easy to accomplish with listboxes. Any ideas on how I can accomplish this same functionality with a grid?
>>
>>Dave.
>
>Hi Dave,
>
>While this is possible, there is no really any convenient or universal way to so.
>Changing the order of records in the grid assumes either to physically relocate the records in the grid source, or manipulate some index key values so the records appear in the grid rearranged.
>First is not convenient as these operations mostly require exclusive use of the table and do not play well in multiuser environment.
>The second way probably could be used for the indexed local views/cursors.

I am going to take a 'local view' of the data and in the view add a field defining the order of the records in the grid. When the user manipulates the order of the grid it is this field the grid will update.
>
>Could you elaborate on the work scenario where you see this functionality fit?

Mail order source codes have circulation and sales information appearing in a GRID. The grid contains all kinds of graphical niceties management loves looking at. But management wants to move the source codes around in unusual not predefined orders.
I'd like to be able to drag and drop a grid row graphically.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform