Either something I changed in the grid has caused this to happen or my grid has too much data. Not sure what setting I changed to get this to stop working. I attached and screen shot and a sample project. To hard to explain in a post.
The attached image shows that the columns no longer repeat and changing it to split does not work either.
Stopped Repeating
Michael,
The behavior is impacted by the setting of RowLayoutStyle on the Band and in your sample this is set to RowLayoutStyle.ColumnLayout on line 893 of Form1.Designer.cs. If you set the RowLayoutStyle to RowLayoutStyle.None or remove this line then you would get all of the columns when you print. I am still looking into why the behavior is different when this property is set to ColumnLayout or GroupLayout.
I will follow up on this thread when I have more information.
I spent some more time debugging this and the calculations to determine the width of the band always result in 0. I have logged this with development to look into further as development issue 170412. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.
I will follow up on this thread with the resolution of development issue 170412 after engineering has looked into this.
You can set the RowLayoutStyle to None to get the printing behavior that you want as a workaround.
Let me know if you have any questions.
I will temporarily change it to none. Thanks for your help.
Engineering has completed their review of development issue 170412 and found that this behavior is specific to when DisplayLayout.AutoFitStyle is set to Infragistics.Win.UltraWinGrid.AutoFitStyle.ExtendLastColumn. Being that you have many columns this setting doesn't make sense and the recommendation is that you remove this setting in your application as it will solve the issue.
Let me know if you have any questions with this matter.
That may work when the grid columns are all visible but the end user has the ability to remove any columns they do not wish to see. Our end users do not like the empty white space at the end they prefer the last column to extend. A grid will always have more information than most users will want to see but this gives them the ability to customize it to their liking. Every grid in our system is setup this way. That is 300+ grids. Making this change is a workaround because we have no idea when we have too many columns to use the setting. We are also not taking into consideration screen size. We have end users with 10.1 inch to 30 inch monitors and in each case the grid will display more or less columns. On a 30 inch monitor almost every grid would require extend last column to ensure that we don't have any empty white space.
The attached image shows a grid with only 10 columns on a 24 inch monitor. If extend last column is not set it would cut-off mid screen. This grid also has the issue with print preview.
I have reopened development issue 170412 and added your feedback for engineering to review. I will follow up again when I get more information.
Thanks for the update. I will get the latest release installed as soon as possible and test it.
Development issue 170412 was fixed and the fix is included in the service release that was posted on the website today. You can download this from the My Keys and Downloads page.