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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

NumericUpDown cells in a grid

Thread ID:





63383 Jul 3,2007 02:16 PM UTC Jul 4,2007 07:01 AM UTC WinForms 2
Tags: GridControl
Frank Papin
Asked On July 3, 2007 02:16 PM UTC

I'm using some numeric up down cells in a grid.
I need to fire a click event when i click on one of the two up/down buttons (GridCellUpDownButton) to catch the new value in the cell.

Thanks for your help


haneefm [Syncfusion]
Replied On July 3, 2007 08:51 PM UTC

Hi Frank,

You can try these code snippet :

private void gridControl1_CellButtonClicked(object sender, Syncfusion.Windows.Forms.Grid.GridCellButtonClickedEventArgs e)
GridControl grid = sender as GridControl;
int i = Convert.ToInt16(grid.CurrentCell.Renderer.ControlValue);
int increment = e.ButtonIndex != 1 ? 1 : -1;
int ivalue = i + increment;
Console.WriteLine("New Value" + ivalue);

Best regards,

Frank Papin
Replied On July 4, 2007 07:01 AM UTC

Hi, Haneef

Thank you, it works well.

Best regards.


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

or the page will be automatically redirected to 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