CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Hiding links in a GRID

Print topic Send  topic

Author Message
katmanrocks

Posts: 8
Posted: 03/06/2007, 9:45 AM

I have been able to hide links in a GRID using some of the tips found on searching the topic on this site. I am able to hide links. My issue is a bit more complicated. How do I selectively hide the link at a "ROW" level in the GRID search results? It seems that if any row's result matches the hiding criteria, then that field is hidden for ALL results.

For example, my Before Show criteria checks the value in a field. If the length is > 0 then the link is displayed. If I return only results with values in that field for all records, then everything is fine. If some of the returned results are NULL (or length is not > 0) then the link is hidden for all results.

Is there a way to selectively hide the link for some results but not all results?

Any help would be appreciated.

View profile  Send private message
bedollandres

Posts: 48
Posted: 03/06/2007, 12:40 PM

Use the BeforeShowRow event...
_________________
bedollandres
View profile  Send private message
katmanrocks

Posts: 8
Posted: 03/07/2007, 8:19 AM

That did the trick - thanks. I did not know that event existed on the GRID itself.
View profile  Send private message
Slopey

Posts: 33
Posted: 03/12/2007, 2:25 PM

While you're on the topic, what's the correct way to hide a listbox in a grid row? I've got a list box on my grid which I'd like to hide based on a value in another field on the grid, but I can't use Listbox.visible = false as that property is checked at the BeforeShow time so I need to set it prior to that event, but how else can i check it on a row by row basis?
View profile  Send private message

Add new topic Subscribe to topic   


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.