This is my datagrid i want to display an image in the grid column but its is showing me text System.Windows.Media.Imaging.BitmapImage
, instead of displaying an Image.
How to add an image in a datagrid column?
This is what I have tried :
Dictionary dict1=new Dictionary < string,object>();
string keyimage="Image";
object a1 = new BitmapImage();
a1=Imaging.CreateBitmapSourceFromHIcon(SystemIcons.Information.Handle, Int32Rect.Empty, null);
dict1.Add(keyimage, a1);
This dict1
serves as Itemsource
for the datagrid...........how to make an image to be displayed in a datagrid column?