Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Hiding header in a sub grid
posted

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.Settings>

                  <DataGrid:TextFieldSettings AllowEdit="False" />

               </DataPresenter:Field.Settings>

            /DataPresenter:Field>

   </DataPresenter:FieldLayout>

   <DataPresenter:FieldLayout>

           <DataPresenter:Field Name="Error" Label="Error"  >

               <DataPresenter:Field.Settings>

                  <DataGrid:TextFieldSettings Width="500" AllowEdit="False" />

                </DataPresenter:Field.Settings>

               </DataPresenter:Field>

             </DataPresenter:FieldLayout>

    </DataPresenter:XamDataGrid.FieldLayouts>

</DataPresenter:XamDataGrid>