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?