Пример #1
0
 private void grdList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         frmAEClass frm = new frmAEClass((DataRowView)grdList.Rows[e.RowIndex].DataBoundItem);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadList();
         }
     }
 }
Пример #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
            {
                frmAEClass frm = new frmAEClass((DataRowView)grdList.Rows[rowindex].DataBoundItem);
                if (frm.ShowDialog() == DialogResult.OK)
                {

                    LoadList();
                }
            }
        }