Hiding a dataGridView

  • 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;

  • 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!

  • That is it! Thank you very much! =)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply