By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,606 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,606 IT Pros & Developers. It's quick & easy.

Insert an Image in the specified cell - DataGridView

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.