DataRow conversion issue in asp.net
<p>How to convert system.data.datarow to an integer?</p>

<p>I Have a datarow which is returning the count of records which i want to store in an integer variable
The statement is as follows</p>

<pre><code>int TotalRecords=ds.Tables[1].Rows[0];
</code></pre>

<p>here ds is the DataSet.</p>

<p>when i am trying to write the above statement it is telling me that i cannot implicitly convert System.Data.DataRow to int</p>
