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.
Unfortunately, activation email could not send to your email. Please try again.

Hide Detail view header if there are no records

Thread ID:





123601 Apr 2,2016 10:23 AM Apr 4,2016 09:00 AM WPF 1
Tags: SfDataGrid
sabrina c.
Asked On April 2, 2016 10:23 AM

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.


Jayapradha S [Syncfusion]
Replied On April 4, 2016 09:00 AM

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



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.