We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use image path as an image source in GridImageColumn?

GridImageColumn helps you bind the types that are supported by Image.Source,
such as BitMapImage. When you bind a format other than the supported format, such as name of the image or file path of the image, GridImageColumn does not load the images. In such cases, you can use converter in ValueBinding for GridImageColumn that converts the string path to support Image source format. The following code example illustrates how to bind the image name or file path to GridImageColumn with the help of ValueBinding along with Converter to convert image name to BitMapImage.


SfDataGrid bounded to collection of OrderInfo and OrderInfo class have a property ImageLink that contains the image names on the Project.

Following is the converter that converts image name (placed in the Project) into BitMapImage.


In WinRT and UWP you can give file path directly in StringToImageConveter. Convert method code example for WinRT and UWP platform is as follows.

public object Convert(object value, Type targetType, object parameter, string language)


            if (value != null)


                string imagename = value as string;

                 return new Uri(string.Format(@"..\..\Image\{0}" ,

                  imagename), UriKind.Relative));


            return null;


The following is the screenshot for image column that loads images in GridImage Column.



Sample Links:





Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework: Product Version:
2512 08/20/2014 01/21/2016 WPF SfDataGrid 4.5
Did you find this information helpful?
mohit Mar 15, 2016
I have uploaded new image in the same folder with the help of File.copy command. But new image that I have added is empty.Please tell me solution .I am waiting for your reply
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon