How to remove extra column Datagrid

后端 未结 7 384
一生所求
一生所求 2020-12-09 02:59

i have binded itemsource to Datatable for Datagrid . it shows extra columns how to remove it

My code :



        
相关标签:
7条回答
  • 2020-12-09 03:41

    You can set the HorizontalAlignment to Left. As described here

    For example:

    <DataGrid ItemsSource="{Binding}" HorizontalAlignment="Left"/>
    
    0 讨论(0)
提交回复
热议问题