GroupDropArea
Hi Team,
Is there a reason why the GroupPanel's Height property has a minimum allowed value of 48?
Regards
Jeremy
SIGN IN To post a reply.
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
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
JE Jeremy
- Apr 18, 2019 01:29 PM UTC
- Apr 22, 2019 06:53 AM UTC