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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GroupDropArea

Thread ID:

Created:

Updated:

Platform:

Replies:

144103 Apr 18,2019 01:29 PM UTC Apr 22,2019 06:53 AM UTC WinForms 3
loading
Tags: SfDataGrid
Jeremy
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?


Regards

Jeremy

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" }); 
            sfDataGrid.ExpandAllGroup(); 
        } 
 
Regards, 
Sabaridass R 


Jeremy
Replied On April 19, 2019 01:19 PM UTC

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


Regards

Jeremy

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. 

Regards, 
Jagadeesan

CONFIRMATION

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