Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, January 11, 2016 3:55 PM
Points: 138, Visits: 421
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 @ 1:10 PM
Points: 14,412, Visits: 37,721
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

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
Post #1447608
Posted Monday, April 29, 2013 9:30 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, January 11, 2016 3:55 PM
Points: 138, Visits: 421
That is it! Thank you very much! =)
Post #1447610
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse