How can I center the text in the headers for an AG-grid control? I have tried using cellstyle and cellclass in the column definition but that did not work. Thank you
If you want to align your text right, left or center in ag-grid. Then use this:-
cellStyle: { textAlign: 'right' } cellStyle: { textAlign: 'left' } cellStyle: { textAlign: 'center' }