Align DataGrid Column Header to Center

后端 未结 6 792
栀梦
栀梦 2021-02-02 07:15

I need to align WPF DataGrid Column Header text to Center. I created a style and attached that using the HeaderStyle property as below

6条回答
  •  深忆病人
    2021-02-02 07:52

    I landed here while searching for the same problem for Row Headers alignment. In case anyone else was searching, the solution is as simple as:

    
      
        
      
    
    

提交回复
热议问题