Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TxtName in a Grid
Message
De
06/05/2003 11:25:56
Steven Herbin
SNH Computing Corporation
Swan Lake, New York, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00784968
Message ID:
00785402
Vues:
29
>Hi Steven.
>
>>I am trying to use the txtName control in a grid to enter/display a person's name in a field.
>>
>>When formatting the grid, I inserted the txtName control and removed the Text control. So the grid hierarchy is grid->column->header->txtName. When I display the grid, only the lastname field shows up (that's the control source which is a valid name field in the CM registry). When I click on the field, the full name displays. The column Sparse property is ".f." (eventhough trying both .t. and .f. both gave the same results.
>
>I got a similar problem with txtDate.
>You should set Sparse to .T.
>Also try setting the Column.Bound to .F., then set a different control source for the column. The column controlsource is displayed when the cell does not have focus. The txtName control only displays when it has focus.
>Use an expression in the Column.ControlSource to display the name when the cell has no focus.
>
>Best.

Ivan-

Thanks for the help. What you suggested worked, I'm not sure why, but I'm not going to quibble.

You'd think there would be a better / easier way to do this.

--Steve.
Steven Herbin
SNH Computing Corporation
Swan Lake, NY
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform