How to put multi-line table header rows

Is it possible to have a multi-line header in a PdfLightTable? I have seen the column heading= texts automatically split over multiple rows if I shrink the width lower than the heading text width, but can I control this?


1 Reply

CD Chris Dahl February 23, 2009 03:26 AM UTC

I found out how to do this! With the table's Style.HeaderSource propery set to PdfHeaderSOurce.Rows (so that the first data row is treated as the header), I set the value of the first row with the "\n" newline character(s) in the text value.


Loader.
Up arrow icon