>Ok, this is probably an easy one.
>
>I've been converted to loving (at least seriously liking) custom classes when developing my forms to avoid duplicate work, especially formatting.
>
>My forms need a bunch of grids so I created a grid class with specific formatting of column/text fonts etc. but it looks like this will only work if the grid I create on the form has the exact same number of columns as the grid class, i.e. it won't let me change the number of columns in the form grid instance. Am I correct? Is there any way around this so all of my grid columns are "Arial 8 bold"?
>
>thanks! You guys are a wonderful wealth of info.
>
>Mandy
Mandy, I learned the following from Drew Speedie's Visual MaxFrame, and it seemed like a great trick:
First, make a grid class with 10 columns (your choice, but more than you generally need). Next add a class property called nColCount. Set up each of the 10 columns the way you want them - fonts, etc., but leave them each very narrow for convenience. In the INIT, place this.columncount = this.nColCount. This gets rid of the 'extra' columns on loading.
On your form, just set up the columns you WANT, leaving the others with the defaults - they disappear when the form is loaded.
I've only used the VMF version, so let me know if my summary of his procedure works.
HTH
Barbara