Hi
am using UltraGridDocumentExport inorder to export a grid to PDF
My grid consists of a column on which " CellMultiLine " property is set to True
so i can enter 200 characters into that cell (max 200).
My Problem is i have used AutoSize property of UltraGridDocumentExport ,but still am not able to see the full column value
i have set the property as
ultraGridDocumentExporter1.AutoSize = Infragistics.Win.UltraWinGrid.DocumentExport.AutoSize.SizeColumnsToContent;
this is the actual grid
when i export the same grid to PDF am getting as the screen below.Am not able to get the full data of that cell
Hi,
I think the DocumentExporter does this on purpose. It ignores columns with CellMultiLine set to true for the purposes of autosizing, because it's not really clear what you, the developer, want to happen there.
If the grid sizes the column width, all the text would end up on one line instead of wrapping. If the grid sizes the row height, then it needs to establish a fixed column width first.
So the thing to do here would be to for you to handle an event of the UltraGridPdfExporter and perform the autosizing on this column yourself.
You could handle BeginExport to and call PerformAutoResize on the column.
Or you could handle InitializeRow and call PerformAutoSize on the row.
Or some combination of the two, of course.