NumericUpDown cells in a grid

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

Regards.

2 Replies

HA haneefm Syncfusion Team 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,
Haneef


FP Frank Papin July 4, 2007 07:01 AM UTC

Hi, Haneef

Thank you, it works well.

Best regards.

Loader.
Up arrow icon