Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A simple grid problem.
Message
From
24/02/1999 11:23:45
 
 
To
24/02/1999 11:15:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00190975
Message ID:
00190982
Views:
22
>I have a small problem with a grid...
>
>I have a grid of 5 text boxes that display a list of scheduled evaluations to be performed. I need the grid to select the entire row when a user clicks on a row. Instead, the grid places the cursor in the cell and puts a border around the cell itself.
>
>I have tried several of the properties for the grid,column and text fields; all to no avail.
>
>Can anyone help?
>
>TIA

You may highlight active row using DynamicBackColor property, e.g.
***Grid.Init event
local cLine
this.parent.grContRecno=-1
this.recordsource="tmpFrmCmgrL1"
this.colCalldate.controlsource="tmpFrmCmgrL1.calldate"
this.colUsername.controlsource="tmpFrmCmgrL1.username"
this.colCstatus.controlsource="tmpFrmCmgrL1.cstatus"
cLine="IIF(thisform.cntCmgr.grContRecno=recno('tmpFrmCmgrL1'),65535,16777215)"
this.setall("Dynamicbackcolor",cLine,"column")
***Grid.BeforeColumnChange event
IF used("tmpFrmCmgrL1")
 this.parent.grContRecno=recno("tmpFrmCmgrL1")
ENDIF
***Grid.AfterRowColumnChange event
IF this.parent.grContRecno=recno("tmpFrmCmgrL1")
 RETURN
ENDIF
this.parent.grContRecno=recno("tmpFrmCmgrL1")
this.refresh
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform