Example #1
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 16)
            {
                DataGridViewRow     row       = dataGridView1.Rows[e.RowIndex];
                Frm_Stu_Application ObjStuReg = new Frm_Stu_Application();

                Frm_StuView.StuId      = row.Cells[9].Value.ToString();
                Frm_StuView.RegNo      = row.Cells[1].Value.ToString();
                Frm_StuView.StuName    = row.Cells[2].Value.ToString();
                Frm_StuView.DOB        = row.Cells[3].Value.ToString();
                Frm_StuView.Gender     = row.Cells[4].Value.ToString();
                Frm_StuView.AadhaarNo  = row.Cells[5].Value.ToString();
                Frm_StuView.StuPhNo    = row.Cells[10].Value.ToString();
                Frm_StuView.StuEmail   = row.Cells[11].Value.ToString();
                Frm_StuView.FName      = row.Cells[6].Value.ToString();
                Frm_StuView.FPhNo      = row.Cells[7].Value.ToString();
                Frm_StuView.FEmail     = row.Cells[12].Value.ToString();
                Frm_StuView.Course_Id  = row.Cells[13].Value.ToString();
                Frm_StuView.ILang_Id   = row.Cells[14].Value.ToString();;
                Frm_StuView.CourseName = row.Cells[8].Value.ToString();
                Frm_StuView.ILang      = row.Cells[15].Value.ToString();

                Frm_StuView.flag = 1;

                ObjStuReg.Show();
            }
        }
        private void registerToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            if (ActiveMdiChild != null)
            {
                ActiveMdiChild.Close();
            }
            Frm_Stu_Application obj_stuapp = new Frm_Stu_Application();

            obj_stuapp.MdiParent = this;
            obj_stuapp.Show();
            clearhome();
        }