How to hide the Column header in a WPF DataGrid?

Ubalo picture Ubalo · Jul 2, 2009 · Viewed 41.7k times · Source

I am using a DataGrid in Expression Blend but I just need to show only the registries and hide the ColumnHeader.

How do I do that?

Answer

Vic picture Vic · Jul 2, 2009

In the DataGrid there is a Header section where the field Header Visibility could be set to None.

Or in xaml for the Datagrid add the property

HeadersVisibility="None"