Dear all,
I have a scenerio in which the grid is dynamically created and populated at run time i.e nither the fix number of rows nor the columns. Whenever the count of columns and rows exceeds a certian limit they are clipped across the pages.
What I have done to avoid this loss of contents is:
private void ultraGrid_InitializePrint(object sender, Infragistics.Win.UltraWinGrid.CancelablePrintEventArgs e){ e.DefaultLogicalPageLayoutInfo.ColumnClipMode = Infragistics.Win.UltraWinGrid.ColumnClipMode.RepeatClippedColumns;
}
It repeats the clipped columns at the start of next page. However, still there are clipped columns making the printed document not very attractive and professional. I could have set the following property to limit the distribution of logical pages also:
e.DefaultLogicalPageLayoutInfo.FitWidthToPages = 1; // or smthing else.
but it would compress the grid and its contents on the printed document which is again not readable and acceptable solution. Moreover, the user has the ability to resize the columns making the situation more severe as far as the printing is concerned.
Is there any wayaround to change this behavior of the grid i.e. not to print those columns or rows if the ColumnClipMode or ClipRowBehavior is set to the above.
I will highly appriciate the response.
Regards,
Waseem
I'm bumping this question as I want to do the same thing.
Rather than RepeatClippedColumns, I just want the column to appear on the next page when theres not room, I don't want part of it appearing on the first page.
Is there a way of achieving this?