Example #1
0
        private void Diets_Load(object sender, EventArgs e)
        {
            controllerObj = new Controller();
            DataTable dt = controllerObj.ViewAllDiets();

            dietGridView1.DataSource = dt;
            dietGridView1.Refresh();
        }