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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide Detail view header if there are no records

Thread ID:

Created:

Updated:

Platform:

Replies:

123601 Apr 2,2016 02:23 PM UTC Apr 4,2016 01:00 PM UTC WPF 1
loading
Tags: SfDataGrid
sabrina c.
Asked On April 2, 2016 02:23 PM UTC

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.

thanks
Sabrina 

Jayapradha S [Syncfusion]
Replied On 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

Regards,
Jayapradha


CONFIRMATION

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.

Warning Icon 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.Close Icon

;