akin_l

Hi,

I have a dataGridView control on the form and it is not data bound. I

have an image cell(whenever required) which is needed to display

the image as a thumbnail. I want to display a description next to the

image. I have tried using the 'Description' property, but it doesnot

seem to work. I don't have an image column. I just create an image

cell when needed.

Thanks!



Re: Windows Forms Data Controls and Databinding DataGridView ImageCell Description

Bob zhu - MSFT

Hi :

how you handle adding image cell without image column

but for your question I think you can do it in cellpaint event of datagridview ,

paint image and draw string using DGI+






Re: Windows Forms Data Controls and Databinding DataGridView ImageCell Description

Zhi-Xin Ye - MSFT

You can create a UserControl to host an Image and a Label, and add thisUserControl to the Controls property of DataGridView, and diplay it where you want. check this thread for example: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1420626&SiteID=1