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.
SJSathiyathanam Jeyakumar Syncfusion Team January 12, 2023 04:26 PM UTC
Hi SZL,
To center the text in a button column, you can use the
column cell style. You should set the HorizontalAlignment property to 'Center'
and then bind this cell style to the button column. This will ensure that the
text in the button is centered. Refer to the below code snippets to get more
information.
List<CellButton>
buttons = new List<CellButton>();
buttons.Add(new CellButton() { Text = "B", AutoSize
= false});
buttons.Add(new CellButton() { Text = "M", AutoSize
= false
});
buttons.Add(new CellButton() { Text = "T", AutoSize
= false
});
buttons.Add(new CellButton() { Text = "C", AutoSize
= false
});
buttons.Add(new CellButton() { Text = "L", AutoSize
= false
});
CellStyleInfo cellStyleInfo
= new
CellStyleInfo();
SJSathiyathanam Jeyakumar Syncfusion Team January 23, 2023 09:04 AM UTC
SZL,
We are glad that the provided response meets your requirement. Please let us know if you need further assistance. As always, we are happy to help you out.