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

Find checked item from RadGridView

1 Answer 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rajeev
Top achievements
Rank 1
Rajeev asked on 25 Apr 2008, 12:44 PM
I have an issue getting checked items from RadGridView. I have a RadGridview having first column as Checkbox column and a delete button on my win form. I need to findout checked items from RadGridView when user click on delete button. Please help as its urgent for my project.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 25 Apr 2008, 03:13 PM
Hello Rajeev,

You can use following code snippet in the click event of your delete button:

void radGridView1_CommandCellClick( object sender, EventArgs e )  
{  
    foreach (GridViewDataRowInfo row in this.radGridView1.Rows)  
    {  
        if (Convert.ToBoolean(row.Cells["CheckBox"].Value) == true)  
        {  
            //your custom logic....  
        }  
    }  


Kind regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Rajeev
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or