CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 how do i make records hidden/visible in c#

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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

View profile  Send private message
dragoon


Posts: 173
Posted: 01/30/2006, 11:20 AM

...in Before Show event of the grid
View profile  Send private message
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;  
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.