Exemplo n.º 1
0
 private void studentGridView_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         DataGridViewRow row = studentGridView.Rows[e.RowIndex];
         grNo = Convert.ToInt32((row.Cells["GRNo"].Value.ToString()));
         EditStudent es = new EditStudent(grNo);
         es.Show();
     }
 }
Exemplo n.º 2
0
 private void Edit_Click(object sender, EventArgs e)
 {
     if (grNo > 0)
     {
         EditStudent es = new EditStudent(grNo);
         es.Show();
     }
     else
     {
         MessageBox.Show("Select Row which you Delete");
     }
 }