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.

Performance issue with numericalup/down

Thread ID:





57879 Mar 13,2007 10:06 AM Mar 14,2007 04:09 AM Windows Forms 1
Tags: GridControl
Ivan Capin
Asked On March 13, 2007 10:06 AM


I am using a grid that can or cannot have numerical up/down button on it. Unfortuanatly, when there are numerical buttons, a paint event is triggered when the mouse merely hovers over one of them which is not the case for common cells. That entails significant overhead when the grid contains many numerical up/down buttons.
Is there a way to avoid that overhead?

Thank you for your help.

Administrator [Syncfusion]
Replied On March 14, 2007 04:09 AM

Hi Ivan,

You can try handling the CellMouseHoverEnter and check for the CellType. If the CellType matches the NumericUpDown then suspend the painting.

private void gridControl1_CellMouseHoverEnter(object sender, GridCellMouseEventArgs e)
GridCurrentCell cc = this.gridControl1.CurrentCell;
if (this.gridControl1[cc.RowIndex, cc.ColIndex].CellType == GridCellTypeName.NumericUpDown)
Console.WriteLine("Suspend Painting");

Kindly let us know if this helps.

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.