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
245
ActiveDataItem not updated when adding a new record
posted

Hello,

Synopsis: why the ActiveDataItem is not set to the created row ?

I bind my ViewModel to the activeDataItem  and when I go to the "add new row", the activeDataItem is set to null until it's really added but then, the ActiveDataItem is not updated to the created object : Is it the normal behavior ?

  <igDP:XamDataGrid x:Name="_grid" DataSource="{Binding Source={StaticResource dataCVSource}}"
                        ActiveDataItem="{Binding CurrentObject}" />

 

I need to subscribe to some event on the current object and I can't when an object is created this way :-( !