General information
Category:
Forms & Form designer
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only