Bonjour,

Je remplie mon DataGrid avec les données de mon fichier XML via son ItemsSource.
J'arrive à afficher toutes mes lignes de type ObservableCollection(Of XElement) dans mon DataGrid, je peux aussi les modifier, mais malheuresement le fichier XML source ne se met pas automatiquement à jour.

Mes déclarations :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
Private _IEMiss As IEnumerable(Of XElement)
    Private ocXE As New ObservableCollection(Of XERow)
Mon formulaire principale :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
Public Sub New(ByRef vIEMiss As IEnumerable(Of XElement))
        InitializeComponent()
        _IEMiss = vIEMiss
        dgTest.ItemsSource = ocXE
    End Sub
Ma classe de gestion :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Public Class XERow
    Inherits XElement
    Implements INotifyPropertyChanged, IEditableObject
 
    Private copyData As XElement
    Private currentData As XElement
 
    Public Sub New(ByVal vXE As XElement)
        MyBase.New(vXE)
    End Sub
 
#Region "INotifyPropertyChanged Members"
    Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged
    Private Sub NotifyPropertyChanged(ByVal info As String)
        RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(info))
    End Sub
#End Region
 
#Region "IEditableObject Members"
    Public Sub BeginEdit() Implements IEditableObject.BeginEdit
        copyData = currentData
    End Sub
    Public Sub CancelEdit() Implements IEditableObject.CancelEdit
        currentData = copyData
        NotifyPropertyChanged("")
    End Sub
    Public Sub EndEdit() Implements IEditableObject.EndEdit
        copyData = Nothing
        NotifyPropertyChanged("EndEdit")
    End Sub
#End Region
End Class
Quelqu'un saurait pourquoi ca veut pas me mettre à jour ?

Merci d'avance.