Hello.
I'm using a GridImageColumn in a document management scenario to display a small thumbnail of the document being referred to by each row in my grid. I create the image column in code-behind, because my grid column set is somewhat dynamic based on configuration of our product. In the method that creates the GridImageColumn, I have the following code:
When I use this, my images are sized to the exact size specified, where I had instead hoped that it would create a bounding box around the image and preserve the aspect ratio of the image.
Is there any straightforward way to preserve the aspect ratio?
I'm using a GridImageColumn in a document management scenario to display a small thumbnail of the document being referred to by each row in my grid. I create the image column in code-behind, because my grid column set is somewhat dynamic based on configuration of our product. In the method that creates the GridImageColumn, I have the following code:
gridView.Columns.Add(imageColumn);imageColumn.HeaderText = label;imageColumn.ImageHeight = 30;imageColumn.ImageWidth = 30;Is there any straightforward way to preserve the aspect ratio?