Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids - Multiple Row Select
Message
From
03/12/2004 09:59:34
 
 
To
03/12/2004 09:03:46
Jeffrey Havelock
Skipton Information Group
Leeds, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966662
Message ID:
00966704
Views:
12
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' )
Previous
Reply
Map
View

Click here to load this message in the networking platform