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
>
>
>
|
|
|