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
575
UltraGrid Print Preview with empty grid
posted

We would like UltraPrintPreviewDialog w/UltraGridPrintDocument to show the grid column headers when there are no rows in the grid.  Currently print preview shows an empty gray area when the grid has no rows.  I do not see any obvious property to set to get this behavior.  Is this possible and if so, how?

  • 165
    posted

    In my experience, there is no way to print an UltraGrid with 0 rows. There is a condition in the BeginPrint method of the PrintController class that checks for at least 1 row and will end printing immediately if there aren't rows. (PrintController is part of the internals of UltraGrid printing, use reflector or view the source if your subscription includes it)

    I have been successfull printing with 1 row, with nulls for all values. You may give that a try.