Hi Add these lines.
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["RegConnectionString"].ConnectionString);
SqlCommand com = new SqlCommand("select * from CompanyProfile", con);
System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter(com);
DataSet ds = new DataSet();
con.Open();
com.ExecuteNonQuery();
da.Fill(ds, "CompanyProfile");
con.Close();