void CmdNew_Click(object sender, EventArgs e) { if (ActiveDataGrid == null) { return; } ActiveDataGrid.OnNewItem(); ActiveDataGrid.Focus(); }
void CmdEdit_Click(object sender, EventArgs e) { if (ActiveDataGrid == null) { return; } ActiveDataGrid.OnItemSelected(); ActiveDataGrid.Focus(); }
void CmdDelete_Click(object sender, EventArgs e) { if (ActiveDataGrid == null || ActiveDataGrid.RowManager == null) { return; } ActiveDataGrid.OnDeleteItem(); ActiveDataGrid.Focus(); }
void CmdFirst_Click(object sender, EventArgs e) { RowManager.MoveFirst(); ActiveDataGrid.Focus(); }
void CmdNext_Fire(object sender, EventArgs e) { RowManager.MoveNext(); ActiveDataGrid.Focus(); Invalidate(); }
void CmdPrev_Fire(object sender, EventArgs e) { RowManager.MovePrevious(); ActiveDataGrid.Focus(); Invalidate(); }