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

Check/uncheck cell in rad grid view

1 Answer 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shirya
Top achievements
Rank 1
Shirya asked on 26 Feb 2009, 07:37 PM
Hello,
I need to check all of my rows in my gridView and check or uncheck the radCheckboxColumn depending on a condition.
How can i do that?
Thank you
Shirya

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 27 Feb 2009, 10:42 AM
Hi Shirya,

Thank you for your question.

You can check all rows using the code below:

private void CheckRows()  
{  
    for (int i = 0; i < this.radGridView1.Rows.Count; i++)  
    {  
        this.radGridView1.Rows[i].Cells["YourCheckBoxColumn"].Value = yourCondition;  
    }  

Please write back if you have more questions.

Best wishes,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Shirya
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or