We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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 "" newline character(s) in the text value.


Loader.
Live Chat Icon For mobile
Up arrow icon