|118901||Apr 21,2015 11:43 AM||Apr 23,2015 03:32 AM||WinRT||3|
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;
visualcontainer.RowHeights = 45;
Please let us know if you require further assistance.
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.