469,575 Members | 1,658 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

Insert an Image in the specified cell - DataGridView

Hi,

I'm using DataGridView in my Windows Forms project. I need to know
how we can
insert an image into the specified cell [row,column].
I tried with the following code.
Bitmap bMap = new
Bitmap(@"D:\Images\xyz.gif");
DataGridViewImageColumn dgvICol = new DataGridViewImageColumn();
dgvICol.Image = bMap;
dgvOrders.Columns.Insert(5,dgvICol);
this is inserting image in all the rows of the specified column.
But i want to insert it in the RowHeaderMouseClick event that time i
know which row is clicked and already i have the column index Now i
want to insert the image in the specified cell. How Can i do this? If
anybody knows the solution please let me know it.
Thanks and Regards,
Vinothkumar B
bvin...@tvsinfotech.com

May 18 '06 #1
0 2102

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by John A. | last post: by
4 posts views Thread by no-spam | last post: by
2 posts views Thread by Marc Solé | last post: by
3 posts views Thread by David Veeneman | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.