Is there a way to hide/show stacked headers in SfDataGrid based on some condition by user input in one of the Editable columns? Currently I can able to reset StackedHeaderRows collections to achieve hiding like below:
AdlDataGrid.StackedHeaderRows = new StackedHeaderRows();
and readding stacked columns when conditions met to show it back. Wondering if there is a better way to show/hide it.
GLGaneshkumar Lingappan Syncfusion Team April 22, 2015 01:33 PM UTC
Thank you for Contacting Syncfusion support.
We have analyzed your query and you can achieve your requirement by changing the height for the StackedHeaderRows. To hide the StackedHeaderRow you have to set the height as zero and to Show the StackedHeaderRow you have to set the default height. We have prepared the sample to hide and show the StackedHeader based on Editing the Cell and it is attached in below mentioned location. Please Refer the below code-snippet.