This is a migrated thread and some comments may be shown as answers.

Can i hide gridviewcommandcolumn button to specific rows?

2 Answers 215 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Antonio Ibáñez Oliva
Top achievements
Rank 1
Antonio Ibáñez Oliva asked on 05 Jul 2012, 12:34 PM
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 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 05 Jul 2012, 01:04 PM
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 >>
0
Antonio Ibáñez Oliva
Top achievements
Rank 1
answered on 05 Jul 2012, 05:14 PM
Thank you!!
Tags
GridView
Asked by
Antonio Ibáñez Oliva
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Antonio Ibáñez Oliva
Top achievements
Rank 1
Share this question
or