I have a winGrid that is bound to a datatable. i style the winGrid using an isl file to have alternate coloured rows and later by editing the cell.Appearance.ImageBackground propertyof each cell in the grid to display a .png image file when the value of that cell is -1, 0 or +1. This all works fine and displays as expected. My problem arises when trying to print. The images are ignored and nothing is printed in tehir place not even the original numeric values. When exporting to excell the same occurs except the original numeric values are include this time.
Any help as to why this problem arises or how to fix this problem would be much appreciated.
steve
Hi Steve,
In what event are you applying the images? The best event to do this in is the InitializeRow event of the grid.
Also, when you call the Print method (or PrintPreview), make sure you pass in the optional flags parameter. This determines what properties are copied from the on-screen grid layout into the print layout.
All of that is for printing. For the exporting, I'm afraid that images are not currently supported by the UltraGridExcelExporter. You might be able to handle this yourself in code. This thread might help you there:
Export Image in Excel - Infragistics Community
Thanks Mike. Very clear and more importantly spot on. The optional flag "Infragistics.Win.UltraWinGrid.RowPropertyCategories.All" sorted out my problem.