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
620
Image resized in a grid cell
posted

Hi, 

I am inserting an image in a grid cell along with text
col.CellAppearance.Image = ResourceManagerService.GetBitmap("image_id"); 

If I change  the size of the font of the text within the cell, the image gets resized.

Is there a way to define that the image should keep its orginal size .

Thanks in advance

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    The image size is only made smaller when the image at its natural size can't fit into the cell, i.e., images that already fit are not scaled up. You can increase the height of the rows so that large images are not scaled down, by setting (for example) UltraGrid.DisplayLayout.Override.DefaultRowHeight to the value of the Image.Height property plus the combined width of the top and bottom cell borders.

Children
No Data