Database Table:
| EmpID | Name | Photo |
| E123 | PRAKASH | E123.JPG |
And after registration Image is saved E:\RegisterPhoto\E123.JPG
I want to display these records with Photo in dataGridview using C# Windows Form Application.
DataGridView:
| Employee No | Employee Name | Photo |
| E123 | PRAKASH | Photo will display |
I use dataGridViewImageColumn but what is the code?
con.open();
SqlDataAdapter da=new SqlDataAdapter ("select * from emp",con);
DataTable dt=new DataTable();
da.Fill(dt);
con.close();
dataGridViewAutoGenerateColumn=false;
dataGridView1.dataSource=dt;
Please solve this problem.
Nilesh ShahPosted Dec 6, 2017, 1:22 PM
Prakash MondalPosted Dec 6, 2017, 12:16 AM
Ramesh PalanivelPosted Dec 5, 2017, 9:44 AM
Nilesh ShahPosted Dec 5, 2017, 9:15 AM