title: Converting DataSet to String or Int
body: <p>I have a function that gets a SQL command and returns a dataset.  Now I'm trying to run this string command:</p>
  
  <pre><code>@"SELECT ProductPrice 
  FROM Products 
  Where ProductPrice IN 
  (
    SELECT ProductPrice 
    FROM Products 
    WHERE  ProductName =N'" 
  
  + listBox1.Text 
  + "')").Tables[0].Rows[0].ToString()
  </code></pre>
  
  <p><code>ProductPrice</code> is an <code>INT</code><br>
  <code>ProductName</code> is a <code>NVARCHAR</code> </p>
  
  <p>I'm getting this result in the textbox:</p>
  
  <p>' System.Data.DataRow '</p>
  
  <p>BTW : This is a SCHOOL PROJECT! I know this may be vulnerable to SQL Injection</p>