private void insertButton_Click(object sender, EventArgs e)
        {
            if (teacherNameTextBox.Text.Length != 0)
            {
                Teacher teacherObj = new Teacher();
                teacherObj.NAME = teacherNameTextBox.Text;

                TeacherData teacherData = new TeacherData();
                teacherData.Insert(teacherObj);

                populate();
            }
        }
 private void populate()
 {
     TeacherData teacherData = new TeacherData();
     TeacherDataGrid.DataSource = teacherData.getList();
 }