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?
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?
This should work in version 9.2?
Hi,
Thank you for your application.
To print grid doesn't work well as bellow;
ultraGrid1.Print();
But I found that it worked well with using UltraGridPrintDocument as bellow;
ultraGridPrintDocument1.Grid = ultraGrid1;
ultraGridPrintDocument1.Print();