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,
I am trying to right align the text in 1 column on my grouping grid using the following line
this.grdGrpProperties.BaseStyles["Value"].StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Right;
This however does not work, and I get an error.
How can I do this? I do not want this to affect the header cell, and I do not want to do this in prepareviewstyleinfo.
Thanks
ADAdministrator Syncfusion Team April 22, 2005 07:52 AM UTC
One way to get at the style of a column is through the Appearance property in the ColumnDescriptor for the column.
this.gridGroupingControl1.TableDescriptor.Columns["Col1Name"].Appearance.AnyRecordFieldCell.HorizontalAlignment = GridHorizontalAlignment.Right;