Hi,
I was wondering whether it is possible to use the "Data Value Change tracking" feature of the xamDataGrid to play an animation whenever a cell in a given data row changes. In our specific case we would like to:
Play an animation (e.g. color fade from red to white on background), whenever any column value changes, on both the row that is affected by the change as well as on the corresponding GroupBy row. Brief Xaml / Code examples would be appreciated for I couldn't work out how to determine the corresponding Row/GroupByEvent from the Infragistics.Windows.DataPresenter.Events.DataValueChangedEventArgs event.
Kind regards,
Chris
Hello Chris,
If all that you need is the record and the GroupByRecord, here is a code snippet.
private void myGrid_DataValueChangedDirect(object sender, Infragistics.Windows.DataPresenter.Events.DataValueChangedEventArgs e) { //Get the dataRecord DataRecord dr = e.CellValuePresenter.Record; GroupByRecord gbr = null; //if the parentRecord is a GroupByRecord, get that if (dr.ParentRecord is GroupByRecord) { gbr = (GroupByRecord)e.Record.ParentRecord; } }
Hope this helps.