Пример #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();
 }