We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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 03:03 PM

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.
Live Chat Icon For mobile
Up arrow icon