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

align text of columns in ggc

i am using syncfusion ggc. How to align the text of the columns Names and column values in the right,left or center.

I will be v helpfull if anyone could help me in this.

1 Reply

HA haneefm Syncfusion Team October 8, 2007 05:12 PM UTC

Hi Prabhjeet,

Use the HorizontalAlignment property of the GridStyleInfo object to specify the horizontal cell text alignment in a grid. Here is a code snippet.

this.gridGroupingControl1.TableDescriptor.Columns["ColumName"].Appearance.AnyCell.HorizontalAlignment = GridHorizontalAlignment.Right;

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon