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
440
ProepertyChangedEvent of underlying object not getting fired on editing grid.
posted

Hi,

I have bound this datagrid to a List<MyObject>. The myobject class implements INotifyPropertyChanged. When I edit a cell and click outside the xamgrid the propertychanged event for that property is not getting fired. It only gets fired when I click on some other cell. I need it to update explicitly when text is changed. If not atleast when i click on a button outside the datagrid. I have tried explicity setting the focus on some other control. Is there any other way i can do this. Heres how i have defined the grid.

<igGrid:XamGrid x:Name="formGroupDataGrid" Grid.Row="0" AutoGenerateColumns="False" ColumnWidth="auto" >
                <igGrid:XamGrid.ExpansionIndicatorSettings>
                    <igGrid:ExpansionIndicatorSettings Style="{StaticResource ExpansionIndicatorStyl}"/>
                </igGrid:XamGrid.ExpansionIndicatorSettings>
                <igGrid:XamGrid.Columns>
                    <igGrid:TextColumn Key="Name" HeaderText="Form group name" Width="200" IsReadOnly="False" />
                    <igGrid:TextColumn Key="Width" HeaderText="Width" Width="100" />
                    <igGrid:TextColumn Key="RowIndex" HeaderText="RowIndex" />
                    <igGrid:TextColumn Key="ColumnIndex" HeaderText="ColumnIndex" />
                    <igGrid:TemplateColumn Key="IsVisible" HeaderText="IsVisible" Width="Auto" HorizontalContentAlignment="Center" >
                        <igGrid:TemplateColumn.ItemTemplate>
                            <DataTemplate>
                                <CheckBox IsChecked="{Binding IsVisible,Mode=TwoWay}" ></CheckBox>
                            </DataTemplate>
                        </igGrid:TemplateColumn.ItemTemplate>
                    </igGrid:TemplateColumn>
                </igGrid:XamGrid.Columns>
                <igGrid:XamGrid.SelectionSettings>
                    <igGrid:SelectionSettings CellClickAction="SelectRow" RowSelection="Multiple" />
                </igGrid:XamGrid.SelectionSettings>
                <igGrid:XamGrid.RowSelectorSettings>
                    <igGrid:RowSelectorSettings Visibility="Visible" />
                </igGrid:XamGrid.RowSelectorSettings>
                <igGrid:XamGrid.EditingSettings>
                    <igGrid:EditingSettings AllowEditing="Row" IsMouseActionEditingEnabled="DoubleClick" IsEnterKeyEditingEnabled="True" IsF2EditingEnabled="False" IsOnCellActiveEditingEnabled="False" />
                </igGrid:XamGrid.EditingSettings>
                <igGrid:XamGrid.FilteringSettings>
                    <igGrid:FilteringSettings AllowFiltering="FilterRowTop" />
                </igGrid:XamGrid.FilteringSettings>
            </igGrid:XamGrid>