Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
Retrive Image From Folder and Display In DataGridview
Prakash Mondal
Dec 5 2017 8:59 AM
142
Reply
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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
How to bind multiple reports to a single Report Viewer c#
Use SQL Database Via LAN using C# Windows Form Application