c# WPF to display images using relative path i DataGrid
I am selecting Images from database ....using binding but problem is that only those images are displaying which are saved with full path like C://Images/123.png......only other hand some of my images are saved like 123.png and i have thses images saved in my bin>Images folder.....how can i give relative path ...and remember i am using dataGrid to display WPF
Shubham KumarPosted Jan 25, 2016, 12:56 AM
{
List
for (int i = 0; i < dt.Rows.Count; i++)
{
objTemp .Add(new temp
{
Id = dt.Rows[i]["Id"].ToString(),
name = dt.Rows[i]["name"].ToString(),
}
);
}
datagrid1.ItemsSource = objStudent;
}