Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting records in a grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00643451
Message ID:
00643640
Views:
9
Does anybody have sample code that shows how to select grid records?

What you need to do is create either a view or an updateable cursor based on the table you want to make "selections" from and you add a logical field called lSelected. You use the view as the RecordSOurce for your grid and you drop a checkbox in the first column and bind it to you lSelected field. This code in the grid's init:
*** Set up for highlighting ALL Selected Rows
This.SetAll( 'DynamicForeColor', ;
	'IIF( lSelected, RGB( 0, 0, 128 ), RGB( 0, 0, 0 ) )', 'COLUMN' )
This.SetAll( 'DynamicBackColor', ;
	'IIF( lSelected, RGB( 0,255,255 ), RGB( 255, 255, 255 ) )', 'COLUMN' )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform