I am working with unbound fields as shown in this article
http://ko.infragistics.com/community/blogs/blagunas/archive/2012/10/24/xamdatagrid-dynamically-create-and-data-bind-columns-with-an-editor-of-your-choice.aspx
but cannot find a method on the grid to call to refresh the unbound columns.
Hello Anne,
Thank you for your reply. I am very glad that my answer was helpful for you. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi Krasimir,
You sample answered my question.
thank you
I am just checking if you require any further assistance on the matter.
Thank you for your post. I have been looking into it and I assume that the issue that you are having is that when you change the Hours property of the Period class, the XamDataGrid is not updating. If this is correct, the reason for that behavior, in the sample attached in the Brian’s blog post is that the Period class does not implements INotifyPropertyChanged interface, which is responsible for updating the user interface, when a property bound to a visual element is updated. I have modified the sample application to show how you can implement this approach.
Also, XamDataGrid provides another approach for updating the cell values. You can use the RefreshCellValue method of the DataRecord class. You can read more details regarding this method here in our documentation: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v13.1~Infragistics.Windows.DataPresenter.DataRecord~RefreshCellValue.html . This method accepts a Field as parameter and when called, it sets the value of the cell corresponding to the Record and the Field to the current value of the data object corresponding to the cell.
Please let me know if you need any further assistance on the matter.