PaulK
Posts: 15
|
Posted: 01/27/2006, 3:21 AM |
|
Hi,
Im trying to make it so that i can hide/unhide a grid or record on a page, im unsure how to do it in .asp c#.
I can hide and unhide a panel by using the command Panel1.Visible = false;
however i need to be able to do that on a grid or record but tblListUsers.Visible = false; doesnt work.
Could anyone suggest anything to try? or know the code to be able to do it.
thanks for any help
|
|
|
mrachow
Posts: 509
|
Posted: 01/27/2006, 8:12 AM |
|
If you start reading the Component Reference there are table on how to refence components (placed directly on a page, on a form aso.).
Maybe you find your constellation here and be able to build the suitable reference path (if this is the problem of course)..
_________________
Best regards,
Michael |
|
|
dragoon
Posts: 173
|
Posted: 01/30/2006, 11:17 AM |
|
bump this thread not to start another one ...
i have a checkbox in a grid that i want to hide it if the value of another field is null. how can I reach the Visible property of the checkbox? according to docs it says:
Grid1Repeater.Visible = false;
but i get
The type or namespace name 'usersnotify_approval_1' could not be found (are you missing a using directive or an assembly reference?)
users is the grid
notify_approval_1 is the checkbox control
|
|
|
dragoon
Posts: 173
|
Posted: 01/30/2006, 11:20 AM |
|
...in Before Show event of the grid
|
|
|
dragoon
Posts: 173
|
Posted: 01/30/2006, 11:51 AM |
|
well, I'll answer myself this time (also):
in BeforeShow Row event:
e.Item.FindControl("usersnotify_approval_1").Visible = false;
|
|
|