CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006
    Posts
    21

    How to gray out DataGridViewButtonCell?

    I put a DataGridViewButtonCell in the cell of DataGridView.
    Sometimes, I want the DataGridViewButtonCell can not be clicked and become gray,
    How I can do?

    Just like a button in Form, when I set the "Enable" property to False, the button
    become gray and cannot be clicked.

    Thanks.

  2. #2
    Join Date
    Aug 2009
    Posts
    12

    Re: How to gray out DataGridViewButtonCell?

    Umm... there is no Enabled propetry in the DataGridViewButtonCell
    Why don't you try Invisible it instead?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured