title: extracting data from data set
body: <p>Respected Users,</p>
  
  <p>I am extracting data using data set.
  I want to put value in textbox. But value is not comming.</p>
  
  <p>I have following Code</p>
  
  <pre><code>try
              {
                  da = new SqlDataAdapter("select ID from Customer where Name='" + gvBkPendingSearch.SelectedRows[0].Cells[1].Value.ToString() + "'",con);
                  DataSet ds = new DataSet();
                  da.Fill(ds);
                  for (int i = 0; i &lt; ds.Tables[0].Rows.Count; i++)
                      txtCustomerID.Text = ds.Tables[0].Rows[0].ToString();
              }
              catch (Exception ex)
              {
  
              }
              finally
              {
              }
  </code></pre>
  
  <p>txtCustomerID is my textbox.
  It is capturing value as>>>>>System.Data.DataRow</p>
  
  <p>Error is in <code>txtCustomerID.Text = ds.Tables[0].Rows[0].ToString();</code></p>
  
  <p>but i am not able to understand it.
  Please help me.</p>