Wpf – How Do I Hide wpf datagrid row selector

wpfwpfdatagrid

I'm using the WPF DataGrid control to show some details and a select button, and I don't need the gray selector column down the left-hand side. It's also ruining the beauty of my design.

Is there a way to remove it, or how can I style it to match if not?

Best Answer

Instead of setting the Width you can completely hide the row headers by setting on the DataGrid

HeadersVisibility="Column"
Related Topic