tags:

views:

67

answers:

2

Hi I need to have icons in a column of a datagridview in C# .net 4.0 windows form application.

A: 

Probably the same as .NET 3.5.

Just use an Image column.

leppie
Actually I need to put Image with text in that column.
Actually, you did not say that...
leppie
tnx for your help buddy but I need more of that...
Unfortunately, I cannot help you getting text and a image. You will probably have to resort making your own custom `DataGridViewColumn`.
leppie
A: 

After reading the answer from @leppie and your comments i would suggest the following:

Create a UserControl that shows the image and some text. Take care that it will look good, regardless the size of the control (since some MinimumSize) by using Anchoring, Docking, FlowLayoutPanel, whatever.

After successfully creating your own control that is capable of holding some text AND a image, take this tutorial from Microsoft and put your UserControl into it as DataGridViewUserControlColumn.

Oliver