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?
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();