Hi Surya,
That's handy if you know what the max length of the content will be.
But with runtime data, you don't know the max content width at design time, so you can't set column width.
Would be great of the was the "Auto" / "*" convention like in xaml - but I assume there isn't.
I would imagine the best way to do this would be to cycle through the content, and find the max length using MeasureString on the text, and then set the column width accordingly?
Malcolm
That's fantastic - thx :)
Would be great if in future releases this was easier to do - I would imagine it's a fairly common requirement for column widths.
Hi Surja,
I tried to apply the same logic to the PdfLightTable column - but it doesn't have the same effect.
Is there a bug with the pdfLightTable?
You can find a repo with sample code here
Malcolm