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''''m working on a GridDataBoundGrid control,
how can i align the text of a column, to the left, right or center in my GridDataBoundGrid control.
best regards and thanks in advance
fady
ADAdministrator Syncfusion Team April 24, 2006 09:03 AM UTC
Hi Fady,
By default, DataBoundGrid doesn''''t store any style info properties.You can not set any cell or row specific properties for the DataBoundGrid.You need to provide them on demand in the Model.QueryCellInfo as shown in this KB:
http://www.syncfusion.com/Support/article.aspx?id=10351
If you are planning to set any visual style info properties, you need to use the PrepareViewStyleinfo,
http://www.syncfusion.com/Support/article.aspx?id=560
Could you try this code in PrepareViewStyle Info Event to set the texe Alignment of the Column header.Here is a code snippet
//For ColumnHeader cell(0,,1)
if(e.RowIndex == 0 && e.ColIndex ==1)
{
e.Style.HorizontalAlignment = GridHorizontalAlignment.Left;
}
Please let me know if you need any further assistance.
Thanks for choosing Syncfusion Products.
Regards,
Haneef