title: How to get column values from datatable to textbox?
body: <p>I want to get all the values in the column..
  here is my code..</p>
  
  <pre><code>private void btnLeftArrow_Click(object sender, EventArgs e)
  {
          if (con.State == ConnectionState.Open) { con.Close(); }
          con.Open();
          DataTable dt=new DataTable();
          SqlCommand cmd = new SqlCommand("select * from Group_Name", con);
          object obj = cmd.ExecuteScalar();
          if (obj != null)
              txtGroupName.Text = obj.ToString();
          con.Close();
  }
  </code></pre>
  
  <p>it is displaying only first value..but I want to get other values for every click of button..
  My table has only one column</p>