BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi Vasanth,
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.
void sfdatagrid_CurrentCellEndEdit(object sender, Syncfusion.UI.Xaml.Grid.CurrentCellEndEditEventArgs args) { //GetVisualContainer Helps to change the RowHeight value for the Stacked Header. var visualcontainer = sfdatagrid.GetVisualContainer(); var grid = sender as SfDataGrid; //GetRecordAtRowIndex helps to Get the Record value for the Particular RowIndex. var rowData = grid.GetRecordAtRowIndex(args.RowColumnIndex.RowIndex); //GetPropertyAccessProvider helps to get the Cell Value for the Particular column. var celltext = grid.View.GetPropertyAccessProvider().GetValue(rowData, "ProductName"); if (celltext != null && celltext.Equals("HardWare")) visualcontainer.RowHeights[0] = 0; else visualcontainer.RowHeights[0] = 45; visualcontainer.InvalidateMeasure(); } |
Sample Link : http://www.syncfusion.com/downloads/support/forum/118901/StackedHeaderRow102966953.zip
Please let us know if you require further assistance.
Regards,
Ganeshkumar