Performance issue with numericalup/down

Hi,

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.

1 Reply

AD Administrator Syncfusion Team March 14, 2007 08:09 AM UTC

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,
Jeba.

Loader.
Up arrow icon