Click here to Skip to main content
15,894,291 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi I have a table which I'll address each person's photo (on hard) register in the record.
Next, I added a column of type DataGridViewImageColumn (PersonImage) and column address Visible is false
But when I use the following code to display the image in cells datagridview not show any pictures.

C#
foreach (DataGridViewRow row in dataGridView1.Rows)
            {
((DataGridViewImageCell)row.Cells["PersonImage"]).Value = System.Drawing.Image.FromFile(row.Cells["ImageAddress"].Value.ToString());
            }


What to do
Posted

Check this link it may help you

http://forums.asp.net/t/1824419.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900