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
close icon

Refreshing a GridControl

I have a fairly standard WPF GridControl for which I'm editing the underlying data outside of the grid. How can I refresh or repaint the grid to be updated with the new information? 

I've tried using each of the below separately, and in various combinations, but none have worked:

this.GridControl.InvalidateCell(new RowColumnIndex(myRow, myColumn);
this.GridControl.InvalidateVisual(true);
this.GridControl.Model.InvalidateVisual(true);
this.GridControl.RefreshCellUIElementsContent(new RowColumnIndex(myRow, myColumn));

I see that GridDataControl and GridTreeControl has a NotifyPropertyChanges property; does anything like that exist for GridControl?

This shouldn't be difficult... how can I refresh the grid?

Thanks.

1 Reply

PS Pannir Selvam S Syncfusion Team December 18, 2012 12:55 PM UTC

Hi James,

Thanks for using Syncfusion product.

We have analyzed your query and you can refreshing the cells in GridControl by invalidate the cells as shown below.

Code Snippet[C#]:

 gridControl1.InvalidateCell(GridRangeInfo.Cell(1, 1));

We have prepared a sample for this and please check the attached sample.

Sample: GridWPFArrayFormula.zip

Please let us know if any other concerns,

Thanks,

Pannir


Loader.
Live Chat Icon For mobile
Up arrow icon