Merge Cells in WPF DataGrid

后端 未结 3 1584
无人共我
无人共我 2020-12-01 16:38

I want to create a WPF datagrid that spans over multiple rows in one column. Like this:

+-------+----------------+
| Name  | Attributes     |
+-------+------         


        
3条回答
  •  日久生厌
    2020-12-01 16:48

    I managed to implement a solution that does what you want with three levels of grouping with one small issue, in that that the Group Headers scroll horiztonaly with the data.

        
    

    And the Grid:

                
                    
                        
                        
                            
                                
                                    
                                
                            
                        
    
                        
                        
                            
                                
                                    
                                
                            
    
                        
    
                        
                        
                            
                                
                                    
                                
                            
                        
                    
                    
            ...
                    
                
    

提交回复
热议问题