Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids - Multiple Row Select
Message
De
03/12/2004 09:59:34
 
 
À
03/12/2004 09:03:46
Jeffrey Havelock
Skipton Information Group
Leeds, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00966662
Message ID:
00966704
Vues:
13
This message has been marked as the solution to the initial question of the thread.
I need to be able to select (& highlight) multiple rows from a grid and then put a shortcut menu to perform on all selected rows - any ideas on how to do this? Problems I have are ..

Use a view as the grid's RecordSOurce and include a logical field in the grid called lSelected. You can use a graphical style checkbox in the first column of the grid (which will be bound to your logical lSelected field in the grid).

In the grid's Init() this code will take care of highlighting the selected rows:
*** Set up for highlighting ALL Selected Rows
This.SetAll( 'DynamicForeColor', ;
	'IIF( MyAlias.lSelected, RGB( 0, 0, 128 ), RGB( 0, 0, 0 ) )', 'COLUMN' )
This.SetAll( 'DynamicBackColor', ;
	'IIF( MyAlias.lSelected, RGB( 0,255,255 ), RGB( 255, 255, 255 ) )', 'COLUMN' )
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform