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 need to set the text alignment for specific columns in a MultiColumnComboBox. Presently I have an EventHandler for the DropDown event so I can set the column widths (which works). I was also attempting (does not work) to set alignment as follows: MultiColumnComboBox.ListBox.Grid.ColStyles[colname].HorizontalAlignment = GridHorizontalAlignment.Center;
I also have a GridPrepareViewStyleInfo EventHandler so I can set the Column Header Names. If I place the above snipet in this event handler it works, but the MultiColumnComboBox Grid flashes the text in the grid from left to centered.
MUMurugan Syncfusion Team April 5, 2007 10:19 PM UTC
Hi JMS,
Please use GridPrepareViewStyleInfoEventArgs.Style.HorizantalAlignment to set the ColumnName horizantal alignment. Please refer to the below code snippet and let me know if it helps you.