private void button1_Click(object sender, EventArgs e)
 {
     DataAccess dac = new DataAccess();
     DataTable dt = dac.SelectFromCustomers();
     dataGridView1.DataSource = dt;
     dataGridView1.Select();
 }
        private void button2_Click(object sender, EventArgs e)
        {
            string nam = textBox1.Text;
            string adr = textBox2.Text;
            string mal = textBox3.Text;
            string phn = textBox4.Text;

            DataAccess dac = new DataAccess();
            if (dac.InsertIntoCustomers(nam, adr, mal, phn))
                label5.Text = "Customer Registration Succesfully Completed.";
            else
                label5.Text = "Registration Failed !!!!";
        }