Shefali Lahariya

Shefali Lahariya

  • NA
  • 257
  • 155.6k

Getting error when display image in datagridview in exe.

Dec 28 2017 2:41 AM
how to display images in datagridview column from project folder.
 
I am using code :-
 
for (int i = 0; i < lstcount; i++)
{
Image image = Image.FromFile(@"E:\\JHBNewAPI\\JIOMeet\\VidyoClientAPI_Sample_DotNet_3_3_4_0004\\images\\mask_group1.png");
string grpname = objgroupconfereneResponse.groups[i].grpName;
string Grp_id = objgroupconfereneResponse.groups[i].groupId.ToString();
row = new object[] {imge, grpname, Grp_id };
Groupconfrencegridview.Rows.Add(row);
}
 
its working fine in my system but in exe file i am getting error . 
 

Answers (2)