Example #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmAEStudent frm = new frmAEStudent();
     if (frm.ShowDialog() == DialogResult.OK)
     {
         LoadList();
     }
 }
Example #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     int rowindex = grdList.SelectedRows[0].Index;
     if (rowindex < 0)
     {
         MessageBox.Show("Please Select a Record", "Select Record", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         frmAEStudent frm = new frmAEStudent((DataRowView)grdList.Rows[rowindex].DataBoundItem);
         if (frm.ShowDialog() == DialogResult.OK)
         {
            
             LoadList();
         }
     }
 }
Example #3
0
 private void grdList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         frmAEStudent frm = new frmAEStudent((DataRowView)grdList.Rows[e.RowIndex].DataBoundItem);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadList();
         }
     }
 }