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.
|
 |
 |
bedollandres
Posts: 48
|
| Posted: 03/06/2007, 12:40 PM |
|
Use the BeforeShowRow event...
_________________
bedollandres |
 |
 |
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.
|
 |
 |
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?
|
 |
 |
|