We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Hide Detail view header if there are no records

Hi, I've taken a look around and I found a way to hide the Header of a SfDatagrid using the header row height, but as stated in the subject I would like if it is possible to hide the row when the detail sfdatagrid has no records.

In my case I have a primary grid with 4 detail grids under each record. These grids can contain data or be empty. I'd like to know if it is possible to link somehow the HeaderRowHeight to the presence of records (for example I can build a converter bound to the record number of the related field collection), but I don't know how to properly create the binding to the grid property from the "master" record.


1 Reply

JS Jayapradha S Syncfusion Team April 4, 2016 01:00 PM UTC

Hi Sabrina,

Thank you for contacting Syncfusion Support.

We have analyzed your requirement. You can hide the DetailsView Header if there is no records under the detailview grid by using HideEmptyGridViewDefinition to True in SfDataGrid.

Please refer the below UG Document,

UG Link: http://help.syncfusion.com/wpf/sfdatagrid/master-details-view#hiding-expander-when-parent-records-relation-property-has-an-empty-collection-or-null


Live Chat Icon For mobile
Up arrow icon