Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Customized Header in Grid
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01443157
Message ID:
01443161
Views:
104
This message has been marked as a message which has helped to the initial question of the thread.
>This one is for VFP7, but answers that require VFP9 are also welcome.
>
>Is there any way to ' replace' the headers in a grid in a form with a custom header? I'm not talking about code generated forms and grids. I'm tallking about the form designer where a grid is added and the number of columns is still unknown.
>
>(Brings me on an idea: Create a grid class that has 10 columns and each header got the same custom code. Setting columncount to a lower value later is just another way than making it higher than -1. But this scenario might become a nightmare scenario because any maintenance would require 10 equal modifications in 10 places.)

Yes, you can use a builder or you can use MemberClass (VFP8+) to replace column class with custom column class.

Header class needs to be defined in a prg (since header and column are both non visual classes). You can find a sample in Downloads section here - sortable grid by Vlad G.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform