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

Radgrid Get Checked Rows

1 Answer 177 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Manikandan
Top achievements
Rank 1
Manikandan asked on 18 Jun 2009, 05:52 AM
I am using radgridview.It has the Chekcbox colmn.I need to get only the Checked rows from the grid i.e. the rows which are cheked in the grid .Please help me..

1 Answer, 1 is accepted

Sort by
0
gerbrand
Top achievements
Rank 2
answered on 18 Jun 2009, 08:23 AM
Hi,

You need to loop the radgridrow to get the values of the checkboxes and retrieving only the once that are checked.

foreach (GridViewDataRowInfo row in radgrid.MasterGridViewTemplate.Rows) 
    string value = row.Cells[1].Value.ToString();
     if(value == "true")
     {
          // ...
     }
    // ... 

Hope it helps
gerbrand


Tags
GridView
Asked by
Manikandan
Top achievements
Rank 1
Answers by
gerbrand
Top achievements
Rank 2
Share this question
or