The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
hi to all,
i am using the GridControl and i am trying to align right the data in all the cells of a column.
i tried the above line of code but it doesn''t work.
gridControl1.ColStyles[4].TextAlign = GridTextAlign.Right;
what did i miss ?
best regards and thanks in advance
fady
ADAdministrator Syncfusion Team April 10, 2006 11:15 AM UTC
Hi Fady,
The TextAlign property is commonly used to align text left/ right of button elements(which is typical for combo boxes). Use the HorizontalAlignment property to set the alignment of the text in a cell.
this.gridControl1.ColStyles[4].HorizontalAlignment = GridHorizontalAlignment.Right;
Regards,
Calvin.
ADAdministrator Syncfusion Team April 10, 2006 11:35 AM UTC
thanks calvin, it works
fady
>hi to all,
>
>i am using the GridControl and i am trying to align right the data in all the cells of a column.
>
>i tried the above line of code but it doesn''t work.
>gridControl1.ColStyles[4].TextAlign = GridTextAlign.Right;
>
>what did i miss ?
>
>best regards and thanks in advance
>
>fady