KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Datatable individual column text align right #1755

Closed ankit raj opened this topic on on Dec 9, 2020 - 2 comments

ankit raj commented on Dec 9, 2020

Hi, I am using datagrid to show some data and i want to right align some columns which have a particular type of numbers. I already know the column names and am using it in columns=>["c1","c2","c3","c5"]. now if i only want to right align c2 and c3 what should i write ?

Sebastian Morales commented on Dec 10, 2020

Probably add custom css class to your columns and add css rule for text-align: right:

https://www.koolreport.com/docs/datagrid/datatables/#set-custom-css-classes

ankit raj commented on Dec 10, 2020

Thanks , worked fine :)

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

DataGrid