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
1622
UltraGridPrintDocument error when Using Creation Filter
posted

Hello,

I have a UltraWinGrid that contains a custom creation filter that will merge cells across the same row for certain rows in the grid.  This works fine, but when i set the grid as the Grid for the UltraGridPrintDocument, and call the print function, i am receiving errors in the AfterCreateChildElements method, and this causes the grid to not be printed properly (the cells no longer looked merged). 

I have noticed that the error is thrown when attempting to create child elements for a row that is not in view in the grid..

Here is where the error is thrown during printing

 

 

if

 

 

(parent is RowUIElement)

{

 

 

UltraGridRow row = (UltraGridRow

)parent.GetContext();

 

 

CellUIElement cellElement = (CellUIElement

)row.Cells[TEXT].GetUIElement();

Any help would be appreciated

-Chris

Parents Reply Children
No Data