Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hi-Lite single active cell in a grid
Message
From
19/08/2003 10:26:36
 
 
To
19/08/2003 09:42:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00821384
Message ID:
00821409
Views:
25
I think you want the text box in the active cell rather than the active cell itself, and as far as hilighting, it won't keep the hilight when it loses focus. What you should be able to do instead, is to set the backcolor of the textbox.

Alan

>Hello All
>I am attempting to hi-lite the active cell in a grid. As I type in a text box, I would like to hi-lite the active cell, then return control to the text box.
>The below code is in the InterActiveChange method of the text box, txtSearchArg, and reads as follows:
>
> SELECT ItemMaster
> SET ORDER TO itemCode
> SEEK ALLTRIM(thisform.txtSearchArg.text)
> ...
> thisform.grdLabels.Refresh
> thisform.grdLabels.setfocus
> x = thisform.grdLabels.ActiveRow
> *** This gives me the active cell of the desired row in col 1.
> *** This coordinate is the arg for the activecell method for the grid
> thisform.grdLabels.ActivateCell(x,1)
> *** when I set foucs back to textbox, I loose the native hi-lite that
> ***occurs when the focus is set on the grid
> this.setfocus
>
>The big question: Now that I have the coordinates of the active row in the column 1 (active cell), how do I use that coordinate to set properties for that active cell
Previous
Reply
Map
View

Click here to load this message in the networking platform