DataGridView Column binding in WPF

后端 未结 3 743
死守一世寂寞
死守一世寂寞 2021-01-02 21:59

I want to design a DataGrid as shown in the picture below:

\"enter

<
3条回答
  •  迷失自我
    2021-01-02 22:35

    
                    
                        
                        
                        
                        
                    
                
    

    This is how you would do it, if you set the Datagrid1.ItemsSource = a List of Class1, like so.

     List myList = new List();
     DataGrid1.ItemsSource = myList;
    

    Hope this helps.

提交回复
热议问题