Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Class Column count increases by 1 (Column0) on form
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00172267
Message ID:
00173138
Views:
27
>Hi Marshal,
>
>>1. Increased the Column Count by 1
>>2. Inserted an extra column named Column0 at the far left of the grid 3. Moved the grid class's Column 1 to the far right of the grid.
>>
>>Has anyone else every encountered this type of behaviour?
>
>Yeah, I traced it down with Andy Kramek on last DevCon. Probably you grid class has somewhere in the class hierarchy the ColumnCount property changed from it's default value.
>
>Christof

Hi Christof, Correct, with assistance from Kamal Patel, that was the case. The interesting thing is that the Column Count of the Grid Base Class was set to -1, which IS the default! Right-clicking on the Column Count Property in the Class designer and selecting Reset To Default fixes the problem. Apparently, VFP does not check the value of the property against the default value but looks at some flag somewhere to see if the property has been manually changed. Strange...

Thanks for your help
Previous
Reply
Map
View

Click here to load this message in the networking platform