WPF datagrid header text binding

后端 未结 9 2290
执念已碎
执念已碎 2020-11-27 18:01

The column header of the DataGrid is not a FrameWork element for some reason, and so you cannot use bindings to set things like the header text. Please correct me if that is

9条回答
  •  孤独总比滥情好
    2020-11-27 18:32

    I know this post is old, but when I looked up how to do this, this is the first entry that came up. I did not like this answer because it seemed like overkill. After more searching, I ran across this link the showed how to do this in the markup, using a template column.

    
        
            
                ****
            
        
        
            
                
            
        
    
    

提交回复
热议问题