Ticket T747164
Visible to All Users

TileView is not refreshed when data is changed

created 6 years ago

[DevExpress Support Team: CLONED FROM T189619: TileView is not refreshed when a datasource is changed]
Hello supporters,

I am currently experiencing the above phenomenon.

My version is '18.1.6'

The only difference is that my datasource is a List Type…

please check…

Answers approved by DevExpress Support

created 6 years ago

Hi,

List<T> does not support data change notifications. That is why GridControl as well as any data-aware control cannot know of such changes to refresh its content. If you need to reflect data changes automatically, it is necessary to use BindingList<T>  that supports a special ListChanged event. In this case, GridControl will update its content when you add/remove rows. If you need to update its content when property values are changed, your underlying data object should support the INotifyPropertyChanged interface.
I should note that these binding specifics are common for all data-aware WinForms controls.

Alternatively, you can refresh grid data manually by calling the TileView.RefreshData method.

Let me know if this information is helpful.

    Comments (2)

      Hi,

      I changed the List to BindingList as you said.

      However, is still only updates the BindingList, not TileView.

      Just like the previous one, go back to the previous item and come back and see it updated.

      I also changed my data structure by inheriting INotifyPropertyChanged, but the result is the same.

      TileView.RefreshData() is same…

      Only modification of my data is reflected in TileView without any problems, but the addition and remove are not reflected directly in TileView, but it is reflected when I go to another item.

      DevExpress Support Team 6 years ago

        Hi,

        I cannot reproduce the issue. Feel free to modify my sample to illustrate how to see the shortcoming.

        I look forward to your response.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.