Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Hiding a dataGridView Expand / Collapse
Author
Message
Posted Monday, April 29, 2013 9:26 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, May 13, 2014 8:33 AM
Points: 50, Visits: 129
Hi,

Is there a way to hide or disable a datagridview completly? I have a few radio button options and would like to display different datagrids in the same location if possible.

I have tried the following but this does not work:

dataGridView1.Enabled = false;
Post #1447607
Posted Monday, April 29, 2013 9:27 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 8:39 AM
Points: 12,906, Visits: 31,985
i think you want DataGridView.Visible = false; enabled would be more like displaying, but removing editablity due to permissions or something.
visible is what you need to hide/show


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1447608
Posted Monday, April 29, 2013 9:30 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Tuesday, May 13, 2014 8:33 AM
Points: 50, Visits: 129
That is it! Thank you very much! =)
Post #1447610
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse