Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
Datavaluechanged is not fired in xamDataGrid 10.2
posted

Hello,

I defined a xamdatagrid  with these settings:

 <igDP:XamDataGrid  IsUndoEnabled="True" Name="myDataGridt" OverridesDefaultStyle="False"  Grid.Row="1" DataValueChanged="myDataGrid_DataValueChanged" Grid.ColumnSpan="3">

 <igDP:XamDataGrid.FieldSettings>
                <igDP:FieldSettings DataValueChangedNotificationsActive="True" AllowRecordFiltering="True" LabelClickAction="SortByMultipleFields"  SummaryDisplayArea="BottomFixed" AllowEdit="False" AllowSummaries="True"/>
            </igDP:XamDataGrid.FieldSettings>

The datasource is List<> of objects implementing the INotifyPropertyChanged. Every modification in the grid is propagated to the concerned object, keys pressed such as CTRL-Z  are efficient to restore modified values but the event DatavalueChanged is not fired.

I tried to force it by code like this:

myDataGrid.FieldLayouts[0].FieldSettings.DataValueChangedNotificationsActive =true; myDataGrid.FieldLayouts[0].FieldSettings.DataValueChangedHistoryLimit = 5;

but it still doesn't work.

Does anybody know?