Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlight current grid row
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Highlight current grid row
Miscellaneous
Thread ID:
00143073
Message ID:
00143073
Views:
68
I'm using Cetin's grid class to highlight the current row, and I have a few questions:

1) Is the HighlightRow property supposed to do this, or do I just misunderstand its purpose?

2) I was glad to find Cetin's code, because I literally don't think I would've figured it out otherwise. He uses

.SetAll("DynamicBackColor", "IIF(RecNo(This.RecordSource) = This.inCurRec," + ;
str(this.icCurRecBackColor)+","+str(this.BackColor)+")", "Column")

Why is This.inCurRec needed, and not This.Parent.inCurRec? It appears that when this property of the column is evaluated, it's done so in the scope of the grid, not the column (which means I suppose I'd get an error if I tried to directly reference a column property).

3) Even with this code, when I click on the grid, the clicked cell changes color (I really want the grid to mimic a listbox). What is the easiest way to prevent this? I suppose by changing the colors of the control, but since textboxes, etc., don't have DynamicXXXX color properties, it seems this will need doing whenever the cell gets the focus.
Next
Reply
Map
View

Click here to load this message in the networking platform