This was a long time joke for me, about 1998!
SELECT (gridRecordSource)
Pick up correct Alias Before the gridclass "birth", it will work as you want.
Otherwise, Gridclass shows the
Current Work Area whatever you select..
This IF AND ONLY IF occurs on Grid
Class, nothing on basic Form and grid!
It was wasting me 2 weeks to debug!
This is Why grid baby IGNORE my assign value!?
Good luck~
>I have a grid based on a framework gridclass with a columncount of -1. The grid in the form has column count = 6, recordsourcetype = 1-Alias, a valid recordsource, and I define the controlsource for each of the six columns as a specific column of the grid recordsource.
>
>When the form comes up, the columns show up with the first six columns of cursor, not the ones I defined as controlsources. I traced the init of the grid and from instant one it contains those values. I use Codemine.
>
>Any suggestions?
>
>TIA,
>
>Alex
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.