Skip to content

SyncfusionExamples/How-to-set-caption-summary-row-height-in-.NET-MAUI-DataGrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

How to set caption summary row height in .NET MAUI DataGrid?

This article demonstrates how to set caption summary row height in .NET MAUI DataGrid.

In SfDataGrid, you can customize the height of the CaptionSummaryRow when grouping by handling the QueryRowHeight event. By default, the CaptionSummaryRow uses the height specified in the SfDataGrid.RowHeight property. To override this, check whether the current row is a caption summary row using dataGrid.IsCaptionSummaryRow(index) within the QueryRowHeight event, and assign the appropriate height accordingly.

C#

private void sfdatagrid_QueryRowHeight(object sender, Syncfusion.Maui.DataGrid.DataGridQueryRowHeightEventArgs e)
{
	if (sfdatagrid.IsCaptionSummaryRow(e.RowIndex))
	{
		e.Height = 100;
		e.Handled = true;
	}
}

You can download this example on GitHub.

About

This demo shows how to set caption summary row height in .NET MAUI DataGrid?

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages