Beispiel #1
0
 protected override void EditRecord()
 {
     if (GMode == ASPConstant.ModeBrowse && dataGridView.SelectedRows.Count > 0)
     {
         base.EditRecord();
         DataGridViewRow row = dataGridView.SelectedRows[0];
         if (!GDBMJabatan.SelectById(int.Parse(row.Cells["IdMJabatan"].Value.ToString()), ref GMJabatan))
         {
             GMJabatan = GDBMJabatan.Clear();
         }
         ShowData();
     }
     EditNmMJabatan.Focus();
 }
Beispiel #2
0
 protected override void NewRecord()
 {
     base.NewRecord();
     EditNmMJabatan.Focus();
     ShowData();
 }