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.

Refreshing a GridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

106069 Dec 7,2012 11:21 AM Dec 18,2012 07:55 AM WPF 1
loading
Tags: GridControl
James Cronen
Asked On December 7, 2012 11:21 AM

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.

Pannir Selvam S [Syncfusion]
Replied On December 18, 2012 07:55 AM

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


CONFIRMATION

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.

;