CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Hide Results Grid If 0 Results?

Print topic Send  topic

Author Message
Chris Moore
Posted: 08/08/2003, 9:52 AM

I have a search & results on the same page. I can't seem to figure out how
to hide the results grid if there are 0 results returned from the search.
It always just shows an empty grid. How do I do this? I am using ASP.

Thanks

Chris
floydans
Posted: 08/08/2003, 10:06 AM

You can. In the before show event of the grid put this code:

if GridName.DataSource.Recordset.RecordCount = 0 then GridName.visible=false

Of course you must replace "GridName" with the real name of the grid.

Bye
Daniel



"Chris Moore" <chris@dblayout.com> ha scritto nel messaggio
news:Xns93D1792869E59cabubba@66.180.229.147...
> I have a search & results on the same page. I can't seem to figure out how
> to hide the results grid if there are 0 results returned from the search.
> It always just shows an empty grid. How do I do this? I am using ASP.
>
> Thanks
>
> Chris

Chris Moore
Posted: 08/08/2003, 10:33 AM

Thats it, thank you very much.

Chris


"floydans" <floydans@libero.it> wrote in
news:bh0lae$qq2$1@news.codecharge.com:

> You can. In the before show event of the grid put this code:
>
> if GridName.DataSource.Recordset.RecordCount = 0 then
> GridName.visible=false
>
> Of course you must replace "GridName" with the real name of the grid.
>
> Bye
> Daniel
>
>
>
> "Chris Moore" <chris@dblayout.com> ha scritto nel messaggio
>news:Xns93D1792869E59cabubba@66.180.229.147...
>> I have a search & results on the same page. I can't seem to figure
>> out how to hide the results grid if there are 0 results returned from
>> the search. It always just shows an empty grid. How do I do this? I
>> am using ASP.
>>
>> Thanks
>>
>> Chris
>
>
>

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.