I have a grid that is displaying errors from a collection. It shows everything fine and expands correctly but I want to remove the header from showing. Is there a simple way to hid the header?
In the attached example I don't want the Error header to display.
Here is the code for the grid.
<DataPresenter:XamDataGrid MinHeight="300" Name="xamErrorGrid" >
<DataPresenter:XamDataGrid.FieldLayouts>
<DataPresenter:FieldLayout>
<DataPresenter:Field Name="ExternalReferenceNumber" Label="External Reference Number">
<DataPresenter:Field.Settings>
<DataGrid:TextFieldSettings AllowEdit="False" />
</DataPresenter:Field.Settings>
</DataPresenter:Field>
<DataPresenter:Field Name="Errors" Label="Error">
/DataPresenter:Field>
</DataPresenter:FieldLayout>
<DataPresenter:Field Name="Error" Label="Error" >
<DataGrid:TextFieldSettings Width="500" AllowEdit="False" />
</DataPresenter:XamDataGrid.FieldLayouts>
</DataPresenter:XamDataGrid>
Hello,
Have you tried setting the LabelLocation property to Hidden on the sub fieldlayout's settings?