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.
Up arrow icon