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

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

I\'m getting nuts here with this:

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


        
3条回答
  •  抹茶落季
    2021-02-06 21:51

    CanUserAddRows="False" and IsReadOnly="True" combination of both is better to ensure any additional inconveniences.

提交回复
热议问题