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.
I am trying to format a string for my column header to be displayed. There are some situations where I will need to append empty spaces to get the text to align. I've noticed that when I finally display the grid, the text is not aligned.
I should also note that I have centered the horizontal text alignment. How can I have both the white space and the centered text? Is there a way I can allow padded text to appear the way it should be under this condition?
NRNirmal Raja Syncfusion Team November 18, 2008 06:39 PM UTC
Hi Andy,
Thank you for your interest in Syncfusion products.
Th string of the header cell text can be formatted and changed using a property called HeaderText of specifying the particular column from the collection
Please refer the code below: this.gridGroupingControl1.TableDescriptor.Columns[1].HeaderText = "Text";