472,118 Members | 1,140 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,118 software developers and data experts.

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 2187

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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.