Hi
Have images assigned to some cells in a row. The images are stored in Windows.Forms.ImageList.
The Images are assigned in the Grid's InitializeRow event.
In the same event, the row size is later set to RowSizng.Free and .CellMultiLine = True and .Row.PerformAutoSize is called and the row resizes nicely to show the contents.
However the image also resizes to fit the new row height which does not look nice.
Is there any way to stop the image resizing to fit the row height?
Thanks
Hi,
maultby said:In the same event, the row size is later set to RowSizng.Free and .CellMultiLine = True
You are setting these properties in the InitializeRow event? That doesn't make much sense since these properties apply to every row, not just one row.
maultby said: However the image also resizes to fit the new row height which does not look nice. Is there any way to stop the image resizing to fit the row height?
What version of the grid are you using?
In the latest version, I'm pretty sure that images in a cell or never stretched to make them larger - they are only shrunk smaller if they do not fit the cell. Also, I think they always maintain their aspect ratio. This might not work the same way in older versions - but that was a bug.
Thanks for the quick reply Mike.
I'll move those grid scope properties elsewhere, thanks,
UltraWinGrid vers 8.3 with Hotfix 2039. (DLL File version 8.3.20083.2039)
If this is a bug, is there a later hotfix or patch other than moving to later version?
maultby said: UltraWinGrid vers 8.3 with Hotfix 2039. (DLL File version 8.3.20083.2039) If this is a bug, is there a later hotfix or patch other than moving to later version?
I'm not sure when this behavior was changed. You could try getting the latest service release just to see if that helps:
How to get the latest service release - Infragistics Community
Are you images being stretched larger or shrunk smaller?
Is the aspect ratio of the images changing?
Thanks for that reply Mike.
The images are being stretched larger and the aspect ratio remains correct.
If we download and install the lastest patch will wil be able to uninstall just that patch to revert to the revision we have been working on?
As the documentation (WF_EN_FixedBugs_SR09_10.pdf) in the patch file (NetAdvantage_WinForms_20083_CLR20_SR_2138.zip) does not list my particular issue as being fixed, should we try it anyway?
Problem solved after installing the patch in the previous reply.
Many thanks for your assistance on this.