title: Getting data from a radgrid into a data table
body: <p>I am trying to do the following but with a radgrid, that does not have a Rows attribute. How can i do the equivalent? </p>
  
  <p>Thanks </p>
  
  <pre><code>DataTable dt = new DataTable();    
  for (int j = 0; j &lt; grdList.Rows.Count; j++)
  {
  
      DataRow dr;
      GridViewRow row = grdList.Rows[j];
      dr = dt.NewRow();
      for (int i = 0; i &lt; row.Cells.Count; i++)
      {
          dr[i] = row.Cells[i].Text;
      }
  
      dt.Rows.Add(dr);
  }
  </code></pre>