Beispiel #1
0
        private void BindAccepted()
        {
            SqlCommand cmd = new SqlCommand("Select * from Coaching", con);

            if (con.State == ConnectionState.Closed)
            {
                con.Open();
            }
            DataSet        ds  = new DataSet();
            SqlDataAdapter adp = new SqlDataAdapter(cmd);

            adp.Fill(ds);
            Accepted.DataSource = ds;
            Accepted.DataBind();
            con.Close();
        }