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
305
Print DataGrid with a Report, problem with row Height
posted

Hi,

I generate a report from a DataGrid, where each row on the windows form is display as we wan't.

private void gridAEA_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            e.Layout.AutoFitStyle = Infragistics.Win.UltraWinGrid.AutoFitStyle.ResizeAllColumns;
            e.Layout.Override.RowSizing = Infragistics.Win.UltraWinGrid.RowSizing.AutoFree;
            e.Layout.Override.RowSizingArea = RowSizingArea.EntireRow;
            e.Layout.Override.CellMultiLine = Infragistics.Win.DefaultableBoolean.True;

...

}

If the cell width is smaller than the text inside, it's display on several rows.

But, when we print the report using his print method, the data in cells are not all dispaly. It is on display multiLine only if the largest cells have data on several lines (like it's explain on the propertie : Infragistics.Win.UltraWinGrid.RowSizing.AutoFree).

Why is it display as we wan't on the DataGrid (in the WinForm) and not when we print ?

Do you have a solution to print the Report (from datagrid) as we wan't ? It seems that the row adapt itself if one of it cells is display on multiLine.

Best Regards,

Denis