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

Grid refresh

I am using the Grid preview and have successfully binded it to an observable collection, but the grid cells do not refresh as the OC values change.  If I scroll an updated cell off the visible area, and then back onto the visible area, it appears.

I tried datagrid.UpdateLayout(); but no effect.

How do you enable auto refresh?

Thanks



3 Replies

AS Arun Selva Kumar B Syncfusion Team March 4, 2013 09:36 AM UTC

   

Hi Gary Pansino,

 

Thank You for using Syncfusion Products.

 

We have analyzed your query, and possibly it appears that you might have not used INotifyPropertyChanged to connect the value of the property, to notify the binding client (SfDataGrid, in this case) of the property value change.

 

Implementing INotifyPropertyChanged will help you update GridCell, when you change the value in the Collection.

 

Kindly refer the attached sample here,

SfDataGridSample.zip

 

Please let us know, if you need further assistance on this.

 

With Regards,

Arun Selva Kumar



GP Gary Pansino March 4, 2013 09:31 PM UTC

Works perfectly after I incorporated into my project.  Thanks.


PS Prakash Selvaraj Syncfusion Team March 5, 2013 06:49 AM UTC

Hi Gary,

 

Thank you for your feedback.

 

Please let us know if you need further assistance.

 

Regards,

Prakash S.


Loader.
Up arrow icon