private void guna2DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            Student_Id = Convert.ToInt32(guna2DataGridView1.SelectedRows[0].Cells[0].Value);
            EditStudentinfo Form = new EditStudentinfo();

            Form.Std_Id        = Student_Id;
            Form.Std_Fname     = guna2DataGridView1.SelectedRows[0].Cells[1].Value.ToString();
            Form.Std_Lname     = guna2DataGridView1.SelectedRows[0].Cells[2].Value.ToString();
            Form.Std_Age       = Convert.ToInt32(guna2DataGridView1.SelectedRows[0].Cells[3].Value);
            Form.Std_Dept_Name = guna2DataGridView1.SelectedRows[0].Cells[4].Value.ToString();
            Form.ShowDialog();
        }
        private void guna2Button2_Click(object sender, EventArgs e)
        {
            EditStudentinfo EditForm = new EditStudentinfo();

            EditForm.Std_Id        = Std_Id;
            EditForm.Std_Fname     = Std_Fname;
            EditForm.Std_Lname     = Std_Lname;
            EditForm.Std_Age       = Std_Age;
            EditForm.Std_Dept_Id   = Std_Dept_Id;
            EditForm.Std_Dept_Name = Std_Dept_Name;

            EditForm.ShowDialog();
        }