Can i hide gridviewcommandcolumn button to specific rows?

3 posts, 0 answers
  1. Antonio Ibáñez Oliva
    Antonio Ibáñez Oliva avatar
    13 posts
    Member since:
    Aug 2012

    Posted 05 Jul 2012 Link to this post

    Hi, i have a gridviewcommandcolumn and i woul like to hide the button that appears on the cell for certain rows. Is this possible?
    Thanks
  2. Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 05 Jul 2012 Link to this post

    Hello Antonio,

    Yes, this is possible. Please refer to the Change the appearance of the buttons in GridViewCommandColumn section of the Formatting Cells article. Instead of the Enabled property of the buttons, however, you will need to set their Visibility property to Hidden or Visible depending on a custom condition of yours.

    I hope this helps.

    Greetings,
    Nikolay
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. Antonio Ibáñez Oliva
    Antonio Ibáñez Oliva avatar
    13 posts
    Member since:
    Aug 2012

    Posted 05 Jul 2012 Link to this post

    Thank you!!
Back to Top