Example of Cell Alignment in ASP.NET Core Tree Grid Control

This sample demonstrates the text alignment functionalities of the treegrid columns.

Cell Alignment

Align both content and header text of particular column using the TextAlign property of columns. There are four possible ways to align content and header text of column, they are.

  • Right
  • Left
  • Center
  • Justify

In this sample, we have initially set the TextAlign property as “Right” for Duration, Start Date and End Date columns and also we have an option to align the values of content and header text dynamically by select the column and text align value from property panel.

More information about Cell Alignment can be found in this documentation section.

Transform your ASP.NET Core web apps today with Syncfusion ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing