Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Binding one image, either GridView or RadGridView

$
0
0

hi there,

In my case, all the images are stored in a local path in the hardisk. How can I retrieve and show them in each row?

I store the full path for the photo in one varchar field in my Sql table...(c:\folder\folder2\file.jpg)

This is my attempt (I posted one thread on Telerik's forum but think my doubt is more abstract and the solution will serve for any GridView control..

<telerik:RadGridView.Columns><telerik:GridViewDataColumn DataMemberBinding="{Binding Matricula}" Width="70" Header="{Resx LabelOrMatricula}" /><telerik:GridViewImageColumn

 DataMemberBinding="???????" ></telerik:GridViewImageColumn>

Should I use one class which will uses a IValueConverter interface?

How can I pass the path to this class in order to get one image?

Thanks a lot for your posts,


Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF/SilverLight projects.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>