Ticket T1285544
Visible to All Users

WPF- GridControl cell not refreshing until clicked

created 4 days ago

Hello,

I'm trying to click a button and display some calculation result in a grid cell, but I noticed the result was not refreshed until I click the cell.

Is there any way I can make the grid cell to be auto refreshing? I tried to set both AllowLiveDataShaping and DetectNestedPropertyChanges are true but it doesn't work as expected.

Thanks,
Sylvia

Answers approved by DevExpress Support

created 4 days ago

Hello Sylvia,

In a general case, for a grid cell to update automatically, the data item class you use in your data source must implement INotifyPropertyChanged. Perhaps, the data item you currently use does not implement this interface. We described this usage scenario and possible solutions in the following help topic section: GridControl Cells Do Not Update Their Content After Changing Values in Data Item Properties. Please try one of these solutions and let me know if it helps.

If it is not possible to implement INotifyPropertyChanged, you can still call the RefreshData method after updating the value. You can also call RefreshRow and pass the row handle that corresponds to the row whose cell you need to update (see: The Data Source Cannot Support an Update Mechanism).

If none of these works, please elaborate on the details of your implementation. I would appreciate it if you could send us a sample project that illustrates such implementation. This way, we will be in a better position to find a suitable solution for you.

Regards,
Marc

    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.