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

Left padding of children rows in GGC

Hi all,

I am new to SyncFusion components so I still havent got comfortable with the major controls. I have a grid grouping control and with a hierarchical type of structure. Is there any way to set the padding between the children rows and the left border/margin?

Alternatively I could achieve the same effect by setting the column width per hierarchy level (say x for parent, y for children and z for grandchildren).

Thanks in advance.


1 Reply

SR Sri Rajan Syncfusion Team April 24, 2008 02:32 PM UTC

Hi John,

Thank you for your interest in Syncfusion products.

You need to set TableOptions.IndentWidth to some integer value toset the padding between the children rows and the left border/margin. IndentWidth is used to set the Width in pixel of indentation of each child group. Here is the sample to code which implements this task.


this.gridGroupingControl1.TableOptions.IndentWidth = 100;


(Below code is the another way to achieve this behaviour)


this.gridGroupingControl1.Table.DefaultIndentWidth = 50;


Please let me know if this helps.

Best Regards,
Srirajan



Loader.
Live Chat Icon For mobile
Up arrow icon