> Do that in the PAGE's Before Show event and it will prevent the data from
> being fetched (the grid's beforeshow event is too late, it's already been
> fetched in the grid's class initialization ). I don't know how to
> interprete " $<form>before_show_event:, because your code should be in a
> function that says "function Show()". Are you actually declaring the
event
> handler through the properties panel of the IDE, or just trying to write
the
> code yourself?
>
> --
> DonB
>
>
http://www.gotodon.com/ccbth
>
>
> "Ahaa" <
Ahaa@forum.codecharge> wrote in message
>
news:5417c8f54befc5@news.codecharge.com...
> > I have multiple grid forms on a page and I want to hide them when the
page
> is
> > loaded and before a search is done.
> >
> > If no records were found, don't show the gird. I have tried few codes
like
> the
> > one below but it doesn't work.
> >
> > Any idea of what works. Please help.
> >
> > $<form>before_show_event:
> >
> > global $employees1;
> > $p=CCGetParam("emp_id",0);
> > if ($p > 0)
> > {
> > $employees1->Visible = True;
> > }
> > else
> > {
> > $employees1->Visible = False;
> > }
> >
> > Thanks,
> > Ahaa
> > ---------------------------------------
> > Sent from YesSoftware forum
> >
http://forums.codecharge.com/
> >
>
>
>