Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A simple grid problem.
Message
De
24/02/1999 11:23:45
 
 
À
24/02/1999 11:15:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00190975
Message ID:
00190982
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform