Search code examples
c#wpfdatagrid

Hide resize & selection column in DataGrid


Is there a way to hide resize & selection column when I add some data in DataGrid's ItemSource?

A DataGrid without row selectors and a DataGrid with row selectors on the left.


Solution

  • This is the row selector column and it can be hidden using the HeadersVisibility property.

    <DataGrid ... HeadersVisibility="Column">
    

    A value of Column show all column headers but hides the row selectors, see possible values here.