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
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, February 6, 2015 2:44 PM
Points: 77, Visits: 186
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:06 AM
Points: 13,233, Visits: 33,347
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
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, February 6, 2015 2:44 PM
Points: 77, Visits: 186
That is it! Thank you very much! =)
Post #1447610
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse