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

[Solved] Hide GridClientSelectColumn checkbox dynamically per row in RadGrid

1 Answer 401 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Debbie
Top achievements
Rank 1
Debbie asked on 06 Sep 2009, 05:16 PM
I have a radGrid that has a GridClientSelectColumn but I need to be able to dynamically hide/show this based on the data per row. How can I do that. I know how to hide/show the entire column, but that isn't what I want. There are certain rows within the grid that I don't want as selectable (based on the data within the row). So was hoping I could do someting on the grid databound event to do this.

Thanks!
Debbie

1 Answer, 1 is accepted

Sort by
0
Debbie
Top achievements
Rank 1
answered on 06 Sep 2009, 05:34 PM
Found my answer....

var chkSelect = (CheckBox) item["colOrderItem"].Controls[0];  
                    if (chkSelect != null)  
                        chkSelect.Visible = false;       
Tags
Grid
Asked by
Debbie
Top achievements
Rank 1
Answers by
Debbie
Top achievements
Rank 1
Share this question
or