New to Telerik UI for WinFormsStart a free 30-day trial

GridView loading images asynchronously

Updated over 6 months ago
Article relates toProductAuthor
Q2 2012RadGridView for WinFormsIvan Petrov

How To

This article will demonstrate how to add a GridViewImageColumn to the grid and populate it asynchronously with images.

Solution

Create a custom GridDataCellElement and in its SetContentCore method start asynchronous loading of the images. When a result comes back, it is saved in the respective RowInfo and the row is invalidated, thus the SetContentCore is called again and this time the image is cached so it is assigned to the cell element.

gridview-loading-images-asynchronously001

A complete solution in C# and VB.NET can be found here.

In this article
How ToSolution
Not finding the help you need?
Contact Support