DataGrid Row Header WPF

后端 未结 2 724
北荒
北荒 2021-02-15 16:37

I have a populated DataTable (xDataTable) with 7 defined columns - the first column I want to use as my RowHeader.

I also have a DataGrid:

 

        
2条回答
  •  南笙
    南笙 (楼主)
    2021-02-15 16:52

    Use the below style (usual case):

    
        
    
    

    If we want separate RowHeader for separate Row then use:

    
        
    
    

    Just change the above binding as required.

    If the first column is:

    
    

    then remove this column and use this binding for the Header.

提交回复
热议问题