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
close icon

DataForm Group Text/Label


is there a way to customize a little bit more the Group Text. I'm already using the SfExpander and would like to style the groups in a similar way: i.g. Icon - on the right side, or left padding for the text (space between background color and text)

I'm already using the DataFormLayoutManager.

Thank you very much!

Kind regards,


7 Replies

SS SaiGanesh Sakthivel Syncfusion Team November 2, 2022 08:28 AM

Your requirement can be achieved by setting the padding for the group header with the help of GetLeftPaddingForGroupHeader override method in the DataFormLayoutManagerExt class. Please refer to the code snippet for your reference.

Code Snippet

public class DataFormLayoutManagerExt : DataFormLayoutManager


    public DataFormLayoutManagerExt(SfDataForm dataForm) : base(dataForm)





    protected override int GetLeftPaddingForGroupHeader(DataFormGroupItem dataFormGroupItem)


        return 150;



Please refer to the demo sample in the following locations.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/DataFormXamarin352243226

Please let us know if you have any concerns.

RP Robert Pichler November 2, 2022 08:49 AM


thank you very much for your answer.

I already tried it and and unfortunately it works like margin - not padding:

With padding I would expect it like that (photoshop)


Thank you,

kind regards,


SS SaiGanesh Sakthivel Syncfusion Team November 3, 2022 08:06 AM

Currently, we are checking the reported scenario from our end. We will update you on further details on November 8, 2022. We appreciate the patience until then.

SS SaiGanesh Sakthivel Syncfusion Team November 8, 2022 11:30 AM

#Regarding Improvements to set the padding for the GroupHeader Text in the Dataform

We have logged the issue report for the same. We will fix the issue and include the issue fix in our Weekly nuget release which is expected to roll out on November 29, 2022. We appreciate your patience until then.

You can track the status of this report through the following feedback link,


Note: The provided feedback link is private, you need to login to view this feedback.

SS SaiGanesh Sakthivel Syncfusion Team November 29, 2022 08:45 AM

Hi Robert,

Due to the testing phase, we could not include the fix in our weekly nuget release as promised. We will include it in our upcoming weekly nuget release which is expected to roll out in the month of December 6, 2022. We will let you once release rolled out and appreciate your patience until then.

SaiGanesh Sakthivel

RP Robert Pichler replied to SaiGanesh Sakthivel November 29, 2022 03:07 PM

no problem, thank you for the information!

SS SaiGanesh Sakthivel Syncfusion Team November 30, 2022 05:50 AM

Hi Robert,

Thank you for the update. We will let you know once the release rolls out.


SaiGanesh Sakthivel

Live Chat Icon For mobile
Up arrow icon