Hello guys!
i'm have a DataGridCollectionViewSource with the follow code:
<xcdg:DataGridCollectionViewSource x:Key="SetorSelecao"
Source="{Binding RelativeSource={RelativeSource AncestorType={x:Type me:Setor_Grid}},
Path=Selecao}" AutoFilterMode="And">
<xcdg:DataGridCollectionViewSource.ItemProperties>
<xcdg:DataGridItemProperty Name="IdSetor"
Title="IdSetor"
CalculateDistinctValues="False"/>
<xcdg:DataGridItemProperty Name="Setor"
Title="Setor"/>
<xcdg:DataGridItemProperty Name="Situacao"
Title="Situação"/>
</xcdg:DataGridCollectionViewSource.ItemProperties>
</xcdg:DataGridCollectionViewSource>
And a DataGrid with the follow:
<xcdg:DataGridControl Name="dgSetor"
ItemsSource="{Binding Source={StaticResource SetorSelecao}}"
ReadOnly="True" EditTriggers="None" SelectionMode="Single" NavigationBehavior="RowOrCell"
MouseDoubleClick="dgSetor_MouseDoubleClick">
</xcdg:DataGridControl>
When i click two times in Grid, its calls another window where i edit the register.
But after the edition, the grid still the same. The rows are not affected.
I tried this, like in samples:
((DataGridCollectionView)this.dgSetor.ItemsSource).Refresh();
But doesn’t work.
Someone can help me!?
Thanks a lot!