Hi,
You can center the contents of the cell by the custom css class through querycellstyleinfo event as mentioned in the code below:
Code Behind:
protected void GridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Web.UI.WebControls.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
e.Style.CssClass = "cellalign";
}
aspx:
Please refer the sample in the link below which illustrates the above:
http://websamples.syncfusion.com/samples/Grid.Web/6.2.0.40/Grid_ASP_Alignments/main.htm
Please try running the sample and let me know if this helps.
Regards,
Janagan.