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