get image size (in pixel) in radgridview

2 posts, 0 answers
  1. Pin
    Pin avatar
    9 posts
    Member since:
    Jul 2019

    Posted 04 Jul 2019 Link to this post


    I have a radgridview that contains many images. i want to get the image size (width and height in "pixel") of each image. how can i do that? 

    Note: i have no access to image sources (in fact, there is no any image source. all images are in binary format and has been converted to image automatically in radgridview's image columns).

    thanks in advance

  2. Dimitar
    Dimitar avatar
    2929 posts

    Posted 08 Jul 2019 Link to this post

    Hi Pin,

    You cannot get the image from the grid. The images are converted dynamically for the currently visible cells only. You will need to manually convert the binary data to an image in order to get the size. Here is an article thea shows this: c# - Byte Array to Image Conversion.

    I hope this helps. Should you have any other questions, do not hesitate to ask.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top