Baelder
|
| Posted: 02/28/2005, 1:52 PM |
|
My problem is that I have an editable grid with some labels. I want to hide one of these labels (orderup) when another (tmenuOrder) is equal to "1"...
I tried a lot of possibilities but there is only two results. The first did'nt change anyting, and the second hide the label I want to but in all rows...
Here is my code (I also tried on various statement but here it's set on BeforeShowRow):
global $tmenu;
if ($tmenu->tmenuOrder->GetValue ("1"))
{
$tmenu->orderup->Visible = false;
}
else
{
$tmenu->tmenuOrder->Visible = true;
}
Anybody have an idea ?
|
|
|
 |
Baelder
Posts: 2
|
| Posted: 03/01/2005, 1:33 AM |
|
My problem is that I have an editable grid with some labels. I want to hide one of these labels (orderup) when another (tmenuOrder) is equal to "1"...
I tried a lot of possibilities but there is only two results. The first did'nt change anyting, and the second hide the label I want to but in all rows...
Here is my code (I also tried on various statement but here it's set on BeforeShowRow):
global $tmenu;
if ($tmenu->tmenuOrder->GetValue ("1"))
{
$tmenu->orderup->Visible = false;
}
else
{
$tmenu->tmenuOrder->Visible = true;
}
Anybody have an idea ?
|
 |
 |
mrachow
Posts: 509
|
| Posted: 03/01/2005, 1:42 AM |
|
Try
if ($tmenu->tmenuOrder->GetValue () == 1)
_________________
Best regards,
Michael |
 |
 |
Baelder
Posts: 2
|
| Posted: 03/01/2005, 11:40 AM |
|
Thanx a lot mrachow! It works fine!
|
 |
 |
|