Is there some kind of event to determine when DataGrid columns (i.e., Added, deleted) in Silverlight change?

Is there some kind of event to detect when DataGrid columns change (i.e., added, deleted) in Silverlight?

+3
source share
2 answers

Well DataGrid.Columns is an ObservableCollection, so we can use dataGrid1.Columns.CollectionChanged+=Columns_CollectionChanged;

But this is strange.

0
source

As far as I can see, there is no such event in the DataGrid itself. I think I would track the data source with which the DataGrid is bound and works from there. Hope this helps.

0
source

Source: https://habr.com/ru/post/1796477/


All Articles