DataGrid 'EditItem' is not allowed for this view when dragging multiple items

前端 未结 6 1360
一向
一向 2021-01-05 08:53

I have a datagrid which gets data like this:

    public struct MyData
    {
        public string name { set; get; }
        public string artist { set; ge         


        
6条回答
  •  执笔经年
    2021-01-05 09:56

    Instead of using a struct use a class instead.

    UPDATED ANSWER: Try adding your MyData instances to a List then assigning that list to the DataGrid.ItemsSource

提交回复
热议问题