Hi
I work with NetAdvantage V10.3.
When Grid has expanded rows and collapsed rows, PrintPreview works properly by implementing InitializeRow event as follows.
if(e.Row.Band.Layout.IsPrintLayout)
{
UltraGridRow row = grid.GetRowFromPrintRow(e.Row);
if(null != row)
e.Row.Expanded = row.Expanded.
}
But when the grid is printed to paper actually, all rows are printed with expanded. How can I resolve this?
Hello,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
This should work in version 9.2?
That seems to be exactly the same as the original question. I can't see any reason why this would not work in any version - unless maybe the GetRowFromPrintRow method wasn't added until a later version. :)
Mike Saltzman said:The expanded state?
Rows are expanded on print, on grid they are collapsed.
I'm not sure what you are asking. Are you asking about the print preview? The expanded state? The UltraGridPrintDocument? Or just printing the grid in general?