mtsoulis
Posts: 17
|
Posted: 07/27/2016, 9:56 AM |
|
In my grid I have the the textbox1 and the imagelink1
I wanna keep hiden the imagelink1 if textbox1=0
Any help?
Thanks in advance!
_________________
Miltos-Greece |
|
|
saseow
Posts: 744
|
Posted: 07/27/2016, 10:18 AM |
|
Put a Panel around the image link and in beforeshow code test for Textbox value and if it is 0 then hide the panel otherwise show the panel.
if (Textbox1->GetValue() == 0)
{
Panel1->Visible = false;
}
else
{
Panel1->Visible = true;
}
|
|
|
eratech
Posts: 513
|
Posted: 07/31/2016, 7:23 AM |
|
You should also be able to do without the Panel. Similar code in the link BeforeShow event. Remember to change the Visible property in the Properties window or it might override your setting. Use Dynamic.
Cheers
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
mtsoulis
Posts: 17
|
Posted: 07/31/2016, 12:12 PM |
|
it works!!
Thank you!!!
_________________
Miltos-Greece |
|
|
|