Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
8
Reply
Bind image from folder to gridview in win form application.
Renjith R
Dec 11 2014 3:40 AM
986
Reply
I need to bind image from a folder to gridview in windows form application.
i have tried this code and its not giving the proper image.
Is there any problem with the path ?
Image image = Image.FromFile(@"D:\MHTTest\FinalImages\1.png");
DataGridViewImageColumn ImageColumn = new DataGridViewImageColumn();
ImageColumn.Image = image;
ImageColumn.Name = "Name";
ImageColumn.HeaderText = "Nice Name";
ImageColumn.Width = 200;
dataGridView1.Columns.Add(ImageColumn);
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
8
)
Next Recommended Forum
DatetimePicker control
How to remove checked nodes in c# treeview?