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

GroupDropArea

Hi Team,

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


Regards

Jeremy

3 Replies

SR Sabaridass Ramamoorthy Syncfusion Team 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 



JE Jeremy April 19, 2019 01:19 PM UTC

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


Regards

Jeremy


JP Jagadeesan Pichaimuthu Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon