How to remove DataGrid's blank row when binding to a ObservableCollection?

前端 未结 3 1542
眼角桃花
眼角桃花 2021-02-06 21:19

I\'m getting nuts here with this:

ObservableCollection list = new ObservableCollection();
dgEmployees.ItemsSource = list;
         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-02-06 21:58

    I've got it

    on Datagrid XAML, put the attribute:

    IsReadOnly="True"
    

提交回复
热议问题