How to Load SVG Images in RadGridView Column
Environment
Product Version | Product | Author |
---|---|---|
2022.3.913 | RadGridView for WinForms | Desislava Yordanova |
Description
Usually, the SVG (vector) images are stored as XML/text content in the database. When RadGridView is bound to such a DataTable, the text representation is displayed in the automatically generated column:
This article demonstrates a sample approach how to add a grid column that supports SVG images.
Solution
It is necessary to create a derivative of GridViewImageColumn and use a custom cell element that shows the SVG image. The example relies on the fact that the cell's value contains the XML/text content of the image. The achieved result is illustrated in the following image:
Please have in mind that the complexity of the vector images and the number of records may affect the row resizing or scrolling performance.