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
475
Resizing an image in UltraWebGrid
posted

I used the following code to add an image in an UltraWebGrid:

UltraWebGrid1.Rows(i).Cells(0).Style.CustomRules = "Background-repeat:no-repeat"

UltraWebGrid1.Rows(i).Cells(0).Style.BackgroundImage = http://localhost/UltraWebGridPic/recyc.jpg

UltraWebGrid1.Rows(i).Cells(0).Style.Height = 70

UltraWebGrid1.Rows(i).Cells(0).Style.Width = 70

However the I only get part of the original image in the UltraWebGrid cell. I need to know if there is any way I could resize the image (for e.g. setting the height and width to 70) to fit in the UltraWebGrid cell.

Thanks