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

NumericUpDown cells in a grid

Thread ID:





63383 Jul 3,2007 10:16 AM Jul 4,2007 03:01 AM Windows Forms 2
Tags: GridControl
Frank Papin
Asked On July 3, 2007 10:16 AM

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 04:51 PM

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 03:01 AM

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.

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.