If I'm remembering my event firing sequence correctly, the grid doesn't exist yet during the form's load. I think the form loads, then the objects init, then the form inits. So that's why it worked in the form's init.
Michelle
>Hi everybody,
>
> I have a form, which has two grids, only one of them is really used, and other should be removed. The removing code was in Form's Init method and it works just fine. When I put the same code into Load method, it failes. Both grids have all columns controlsource set in design-time.
>
> I'm thinking about put NODEFAULT in Grid Init method, if certain conditions are met. Is there simpler approach?
>
>TIA
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only