 <p>DataGrids represent actual DataItems.</p> <pre><code>DataGrid dg = new DataGrid(); dg.Items.Count; //Number of Items...i.e. Rows; dg.Items[0].Cells.Count; //Number of columns for that Items </code></pre>