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
1310
grid row reinitializing during Grid Print
posted

I am doing some formating in my InitializeRow event.

I am checking the e.ReInitialize argument to test if it is a re-initialize or not.

When I perform a grid print using UltraGridPrintDocument the InitializeRow event fires and I test the e.ReInitialize argument.  It is false. 

Shouldn't it be true here?

I don't want to reformat all that data again.

Does anyone have a similar issue?


-duane

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Duane,

    KDuaneS said:
    Shouldn't it be true here?

    No. :)

    The reason it's false is that when you print, the grid layout is cloned and so are all the rows (which are part of the layout). So the row you are initializing is not the same row as the one on the screen and it is being initialized for the first time.

    You can check e.Row.Layout.IsPrintLayout to determine if a row is part of the print layout, as opposed to the on-screen grid.

Reply Children