Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid.RecordMark - Where's it come from?
Message
From
31/05/2001 04:50:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00512797
Message ID:
00513036
Views:
15
Hi Vlad,
I think where he's trapped (and while replying me too and now you:) was using object ref. wrong. In dynamic* 'this' refers to the 'grid' itself.
Cetin

>Hi!
>
>You can try to simulate the current record pointer programmatically, much the same approach as grid row highlighting. Make a column, remember the recno() of the record source in the nRecNo property of the grid, than specify properties of the column:
>Sparse=.F., BackColor=RGB(128,128,128), DynamicCurrentControl="iif(this.parent.nRecNo=recno('alias'),'ArrowImage','Text1')", ControlSource={expression}=(''). Than add an image control into that column with image that represents a record mark (usually arrow, you can make it fancy if you want ;). In the AfterRowColChange put a code to update the nRecNo by the new record pointer.
>
>HTH.
>
>>To all,
>>
>>Does anyone know how the VFP grid knows which row it will put the record mark? I'm trying to come up with alternatives to the record mark column. I've tried some variations on EVAL(loGrid.Recordsource + ".RECNO()). That's not the real source, but hopefully you get the idea... besides, the real source didn't work. Why advertise my shortcomings :-?
>>
>>TIA,
>>
>>Thom C.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform