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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Committing changes from a NumericUpDown control

Thread ID:





1375 Oct 22,2002 04:13 PM UTC Oct 22,2002 07:03 PM UTC WinForms 1
Tags: GridControl
robert bergelson
Asked On October 22, 2002 04:13 PM UTC

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.

Administrator [Syncfusion]
Replied On 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)
	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; 		


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon