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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





144103 Apr 18,2019 01:29 PM UTC Apr 22,2019 06:53 AM UTC WinForms 3
Tags: SfDataGrid
Asked On April 18, 2019 01:29 PM UTC

Hi Team,

Is there a reason why the GroupPanel's Height property has a minimum allowed value of 48?



Sabaridass Ramamoorthy [Syncfusion]
Replied On April 19, 2019 12:20 PM UTC

Hi Jeremy, 
We have defined the minimum allowed value of group panel’s height as 48 is only for considering the appearance group panel items. You can also provide the value lesser than 48 for group panel’s height. To achieve this, you have to change the “MinimumSize” of group panel with your own values. Kindly refer to the attached sample from the below location. 
Refer to the following code example. 
/// <summary> 
        /// Grid Settings for better Look and Feel. 
        /// </summary> 
        private void GridSettings() 
            sfDataGrid.GroupPanel.MinimumSize = new System.Drawing.Size(0, 20); 
            sfDataGrid.GroupPanel.Height = 20; 
            sfDataGrid.GroupColumnDescriptions.Add(new GroupColumnDescription() { ColumnName = "ProductName" }); 
            sfDataGrid.GroupColumnDescriptions.Add(new GroupColumnDescription() { ColumnName = "ShipCountry" }); 
            sfDataGrid.GroupColumnDescriptions.Add(new GroupColumnDescription() { ColumnName = "CustomerID" }); 
Sabaridass R 

Replied On April 19, 2019 01:19 PM UTC

Thanks Sabaridass. It's easy when you know how!



Jagadeesan Pichaimuthu [Syncfusion]
Replied On April 22, 2019 06:53 AM UTC

Hi Jeremy, 
Thanks for your update. 
We set the minimum height of the group drop area to properly paint the group drop area items without any clipping. And also you can refer the below UG documentation to customize the height of the group drop area, 

And you can enable datagrid to auto fit content for grouped items in GroupDropArea by using the sfDataGrid.AutoFitGroupDropAreaItem property. Please refer the below guidelines for your reference, 

Let us know whether this helps also if you need any further assistance on this. 



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon