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. Image for the cookie policy date

GridControl cell only changes after I change focus


I'm currently developing a Windows Forms application using Syncfusion's GridControl. The grid is updated every 250ms . But if one of the updated cells is selected, that cell value is not updated until I change the focus to another cell. Here's the code I'm using to notify which cells need to be updated.

Size _oldSize;
Graphics _graphics;

private void UpdateGridCell(int row, int col)
if (_oldSize != _gridControl.ClientSize)
if (_graphics != null)

_graphics = null;

_oldSize = _gridControl.ClientSize;

if (_graphics == null)
_graphics = _gridControl.CreateGridGraphics();

GridRangeInfo range = GridRangeInfo.Cell(row, col);

if (range == _gridControl.CurrentCell.RangeInfo)
_gridControl.CurrentCell.Model.ResetActiveText(row, col);
Rectangle bounds = _gridControl.RangeInfoToRectangle(headerRange);

if (!bounds.IsEmpty)
_gridControl.DrawClippedGrid(_graphics, bounds);

PS: I extracted this code from Syncfusion performance samples.

2 Replies

RV Rodrigo Vedovato October 13, 2015 08:43 PM UTC

I used DrawClippedGrid in all cases and it worked.

SA Solai A L Syncfusion Team October 14, 2015 12:31 PM UTC

Hi Rodrigo,

Thank you for your interest in Syncfusion products.

We are glad to know that your issue has been resolved. Please let us know if have any concerns in future.



Live Chat Icon For mobile
Up arrow icon