Committing changes from a NumericUpDown control

Is there any way to commit changes from the NumericUpDown control without first loosing cell focus ? This is important because I want to commit each button push as it happens rather than waiting to loose focus first.

1 Reply

AD Administrator Syncfusion Team October 22, 2002 07:03 PM UTC

You can try handling the CurrentCellChanged event, and saving the value at that point.
private void gridControl1_CurrentCellChanged(object sender, System.EventArgs e)
{
	Console.WriteLine("gridControl1_CurrentCellChanged");
	GridCurrentCell cc = this.gridControl1.CurrentCell;
	GridStyleInfo style = this.gridControl1[cc.RowIndex, cc.ColIndex];

	if(style.CellType == "FNumericUpDown")
	{
		this.gridControl1[cc.RowIndex, cc.ColIndex].Text = cc.Renderer.Control.Text;
	}
	this.label1.Text = this.gridControl1[cc.RowIndex, cc.ColIndex].Text; 		
}

Loader.
Up arrow icon