kirchaj
Posts: 215
|
| Posted: 11/29/2007, 2:12 PM |
|
I have a grid that I use in multiple places that uses the beforeshowrow event to modify some of the information before displaying it. So I got the bright idea, why not make it an includeable file so I can change things in one place and effect all of my pages.
So I created an includable page, copied the grid and the custom code from the original file. I put the include page right next to the original grid in a test page and it appears to not execute the beforeshowrow statements. I even put echo statements in to see what was happening and they do not display.
Is there something I am missing here? Any suggestions?
Thanks.
TK
|
 |
 |
datadoit
|
| Posted: 11/29/2007, 2:22 PM |
|
I've experienced this behavior before also, although my situation was
two variants of the grid on the same page (not an include).
Try removing your original grid from the page to see if things work.
|
|
|
 |
DonB
|
| Posted: 11/30/2007, 5:08 AM |
|
Look closely to see if the code you copied was actually pasted within the
{ ... } that bracket the before show row event hander.
--
DonB
http://ccswiki.gotodon.net
"kirchaj" <kirchaj@forum.codecharge> wrote in message
news:5474f393d1c599@news.codecharge.com...
> I have a grid that I use in multiple places that uses the beforeshowrow
event to
> modify some of the information before displaying it. So I got the bright
idea,
> why not make it an includeable file so I can change things in one place
and
> effect all of my pages.
>
> So I created an includable page, copied the grid and the custom code from
the
> original file. I put the include page right next to the original grid in
a test
> page and it appears to not execute the beforeshowrow statements. I even
put
> echo statements in to see what was happening and they do not display.
>
> Is there something I am missing here? Any suggestions?
>
> Thanks.
> TK
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
kirchaj
Posts: 215
|
| Posted: 11/30/2007, 1:16 PM |
|
Thanks for the idea guys, but neither worked for my situation.
What I ended up doing was I created a new includable page, recreated the grid with different grid names, etc. Reprogrammed the custom code and all is well. So there was some sort of conflict but I could not figure out what it was.
Thank goodness for RAD tools.
thanks again.
TK
|
 |
 |
|