title: System.Data.DataRowView in DropDownList
body: <p>I am trying to populate a dropdown using values from a column. Now the problem is: I am not getting the actual values (the country codes like India(+61)) in the dropdown. Instead I am getting "System.Data.DataRowView" (multiple times) in the dropdown.</p>
  
  <pre><code> public void bind()
   {
      DataSet ds1 = new DataSet();
      SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["ConnectionString"]);
      con.Open();
      string strQuery = "select CountryCode from AUser";
      SqlCommand cmd = new SqlCommand(strQuery, con);
      using (SqlDataAdapter da = new SqlDataAdapter(cmd))
          da.Fill(ds1, "AUser");
      ddlMobile.DataSource = ds1.Tables["AUser"];
      ddlMobile.DataBind();
      con.Close();
  }
  </code></pre>
  
  <p>I am calling the bind method on <code>page_load</code>. Data type for <code>CountryCode</code> is <code>varchar(50)</code> &amp; values are like <code>India(+91)</code>, <code>Australia(+61)</code> etc...</p>