Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically tell WHICH row in grid is selected?
Message
 
 
To
26/04/2000 16:04:14
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00363425
Message ID:
00363765
Views:
16
Hi Peter,

While both work, the best place to put the property for reuse, is on the grid.

Rick

>Charlie...
>
>Ok, that will work I suppose... now your suggestion says create a FORM property. A couple others recommended
>a GRID property (which I don't know how to add). Either works?
>
>
>
>>What you need to do is store the recno() to a form property in the Afterrowchange event. In the init of the grid class add the following:
>>
>>with this
>>
>> .SETALL('DYNAMICBACKCOLOR', 'IIF(RECNO() = THIS.CurRecNo, RGB(0,0,128), RGB(255,255,255))', 'COLUMN')
>> .SETALL('DYNAMICFORECOLOR', 'IIF(RECNO() = THIS.CurRecNo, RGB(255,255,255), RGB(0,0,0))', 'COLUMN')
>>
>>endwith
>>
>>You'll have to adjust it to suite your requirements, but you get the picture.
>>
>>Charlie
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Reply
Map
View

Click here to load this message in the networking platform