TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Prakash Mondal
NA
288
210.1k
Retrive Image From Folder and Display In DataGridview
Dec 5 2017 8:59 AM
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.
Reply
Answers (
4
)
How to bind multiple reports to a single Report Viewer c#
Use SQL Database Via LAN using C# Windows Form Application