How Do I Hide wpf datagrid row selector

Tim Almond picture Tim Almond · May 19, 2010 · Viewed 55.6k times · Source

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?

Answer

George Mavritsakis picture George Mavritsakis · Oct 30, 2011

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

HeadersVisibility="Column"