I am using databinding with datagrid and using custom columns and ,there are three calumns and two are simple text data and in one i want to put image controll
but image controll is not putting is it possoble can any one help me...?
//Want to put image here...............

Priya LingePosted Nov 29, 2011, 3:59 AM
Please check this,
MainPage.Xaml :
MainPage.Xaml.cs :
public MainPage() listan1 = new List();
{
InitializeComponent();
List
for (int i = 0; i < 3; i++)
{
Itemdata d = new Itemdata { Name = Convert.ToString(i) };
d = new Itemdata { Address = Convert.ToString(i) };
d.Image = new BitmapImage(new Uri("Images/emp1image.jpg", UriKind.Relative));
listan1.Add(d);
}
mydatagrid.ItemsSource = listan1;
}
public class Itemdata
{
public BitmapImage Image { get; set; }
public string Name { get; set; }
public string Address { get; set; }
}
Please check attached code file.
Hope this will help you.
Thanks.
Mayur GujrathiPosted Nov 29, 2011, 3:42 AM