>I like to use grids visually and have created a bunch of subclasses in a .vcx that fit my needs. I would like to add a special header class, and have found some code that substitues a user defined header for the default header in each column in the grid init(). My problem is that the class designer will not let me put class definition code for my header class in the grid init() code. If I put the header definition in a separate .prg and have a line of code "do HeaderDefinition.prg" at the beginning of the init, it just ignores it and gives me an error that my header class is not defined.
>
>Is there any way around this?
>Jay
Jay,
Look at 'Two grid classes' in download section.
Instead of 'do', set procedure to your .prg or better yet use NewObject() in VFP6 and up.
Cetin