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
50
UltraWinGrid 8.3 Auto Row height and Cell Images
posted

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

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

Children