Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
UltraGridDocumentExport column cut off
posted

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

  • 469350
    Suggested Answer
    Offline posted

    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.