private void GridTrxInvF_KeyPress(object sender, KeyPressEventArgs e) { int currentNumber = Utilities.ObjectConverter.ConvertToInteger(GridTrxInvF.Rows[GridTrxInvF.CurrentCell.RowIndex].Cells["Quantity"].Value); if (e.KeyChar ==(char) Keys.Down) { GridTrxInvF.Rows[GridTrxInvF.CurrentCell.RowIndex].Cells["Quantity"].Value = (currentNumber - 1).ToString(); } else if (e.KeyChar == (char)Keys.Up) { GridTrxInvF.Rows[GridTrxInvF.CurrentCell.RowIndex].Cells["Quantity"].Value = (currentNumber + 1).ToString(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)