How to remove NewItemPlaceholder at TreeView wpf

后端 未结 4 667
野性不改
野性不改 2021-01-16 05:04

I bind ObservableCollection to ListView and I get {NewItemPlaceholder} line at the end. How can I hide or remove that line?

4条回答
  •  日久生厌
    2021-01-16 05:20

    Suddenly I solved my problem. The problem was that on the same window I had a DataGrid binded to the same collection. I think that I had to make the DataGrid readonly to eliminate that row in the TreeView. However the DataGrid was just for testing purpose so the problem is gone.

提交回复
热议问题