Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid.RecordMark - Where's it come from?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00512797
Message ID:
00513031
Views:
21
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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform