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:
00513144
Views:
15
David,

>>You can look at the code in my grdHilight class over on my website. One of the ideas I toyed around with while developing it was positioning the shape object under the grid and letting it extend out the sides to indicate the current row. The class is under Q&A, OOP, Article qoop016


Thank you. Something in your grid class pointed me to the solution: grid.RelativeRow.

Never heard of that property before and I started hunting through the VFP help until I found grid.ActiveRow. I gave this a shot:
loColumn.DynamicFontBold = "THIS.ActiveRow = THIS.RelativeRow"
and it works.

Funny thing though. .ActiveRow and .RelativeRow are both grid properties. .DynamicFontBold is a column property. When I use the above syntax, it works. When I use syntax that looks right
loColumn.DynamicFontBold = "THIS.PARENT.ActiveRow = THIS.PARNENT.RelativeRow"
it errors out.


One other thing. When the grid is first being "populated" (drawn on the screen) each row meets the .DynamicFontBold requirement so the entire grid is displayed as bold. When you go back and click on a cell, the grid returns to normal font and the active row retains its bold font. I still haven't found a solution for this, but I'm farther along than I was two days ago.

To everyone who spent the time to think about this and respond,
Thank you for your help.

Regards,
Thom C
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform