Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlight entire row on grid
Message
De
27/01/2003 07:52:24
 
 
À
27/01/2003 00:13:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00738413
Message ID:
00745690
Vues:
48
Hello Steven.

Could you tell me how to include a custom property 'nrecno' to my grid and initialise it to 0 ?

I take it that you are using a base class grid then. You need to create a custom subclass of your own and use this instead of the base case.

1. In the command window type CREATE CLASS grdBase and press < ENTER >

2. In the "New Class" dialog, type "grdBase" for the class name. Select grid in the "based on" drop down list and enter a name for the class library

3. Select "Class" from the main menu and then "New Property"

4. Type "nRecNo" for the name in the dialog box

5. Find the nRecNo property in the property sheet and set it to 0.

6. Now put the hightlighting code in the init of the class and all your grids based on this class will inherit this highlighting behavior.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform