>>
>>the rest of the code is fine, it's just the addition of 86 columns and the deletion of the 'old' 86 columns, preserving all the properties of the 'old' columns, like ColumnOrder, and the like
>>
>
>Greg,
>For 86 columns even doing it like that shouldn't take 2.5 secs. However you can significantly cut down the time if you used one single line of code to set columncount instead of individually deleting old columns (as I undertand you're doing something like removeobject).
>If this is not a must at runtime you could save load time by doing that in designtime too.
>Cetin
Cetin,
I hear what you say, ie This.ColumnCount = xxx
However, setting the columnCount that way will also make them 'standard' columns. and I need my Column Class
With respect to changing the things at design time, I can say that I did such things when I was learning vfp. Now, I write code in the Init if the grid, which then calls the classInit(). The classinit() handles most of the stuff.
Thanks
Gregory