예제 #1
0
 void CmdNew_Click(object sender, EventArgs e)
 {
     if (ActiveDataGrid == null)
     {
         return;
     }
     ActiveDataGrid.OnNewItem();
     ActiveDataGrid.Focus();
 }
예제 #2
0
 void CmdEdit_Click(object sender, EventArgs e)
 {
     if (ActiveDataGrid == null)
     {
         return;
     }
     ActiveDataGrid.OnItemSelected();
     ActiveDataGrid.Focus();
 }
예제 #3
0
 void CmdDelete_Click(object sender, EventArgs e)
 {
     if (ActiveDataGrid == null || ActiveDataGrid.RowManager == null)
     {
         return;
     }
     ActiveDataGrid.OnDeleteItem();
     ActiveDataGrid.Focus();
 }
예제 #4
0
 void CmdFirst_Click(object sender, EventArgs e)
 {
     RowManager.MoveFirst();
     ActiveDataGrid.Focus();
 }
예제 #5
0
 void CmdNext_Fire(object sender, EventArgs e)
 {
     RowManager.MoveNext();
     ActiveDataGrid.Focus();
     Invalidate();
 }
예제 #6
0
 void CmdPrev_Fire(object sender, EventArgs e)
 {
     RowManager.MovePrevious();
     ActiveDataGrid.Focus();
     Invalidate();
 }