Hi fellow developers,
I have a problem that i cannot seem to solve and need an advice.
The problem is that when a cell value is changed (and cell focus is lost), the old value of the cell is passed to Validate method. Consequently, it is needed to click few more times in order to pass the new value to the validate method.
Do you have any suggestion how to solve this or at least an explanation why this could happen?
The relevant code snippet follows:
<xcdg:DataGridControl x:Name="_contentGrid" Width="{Binding ElementName=containerDockPanel, Path=ActualWidth}" ItemsSource="{Binding Source={StaticResource collectionViewSource}}" CellEditorDisplayConditions="RowIsCurrent">
...
<xcdg:DataGridControl.Columns>
<xcdg:Column FieldName="lT" Title="Lt" CellContentTemplateSelector="{StaticResource attributeValueDataTemplateSelector}">
<xcdg:Column.CellValidationRules>
<Spannweite:SpannweiteLtValidationRule/>
</xcdg:Column.CellValidationRules>
</xcdg:Column>
...
</xcdg:DataGridControl.Columns>
</xcdg:DataGridControl>
Any help is appreciated.
Regards,
Dušan