Click here to Skip to main content
15,923,087 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
I'm using DataGridView in my application. I need to insert an image into the Particular cell [row,column].I have tried the following code.
C#
Bitmap bMap = new Bitmap(@"D:\Images\image.jpg");
DataGridViewImageColumn dgv = new DataGridViewImageColumn();
dgv.Image = bMap;
dataGridView1.Columns.Insert(1,dgv);
Posted
Updated 2-Sep-13 2:47am
v2

www.aspdotnet-suresh.com/2011/01/how-to-insert-images-into-database-and.html?m=1
 
Share this answer
 
 
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