Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement