Hi I need to have icons in a column of a datagridview in C# .net 4.0 windows form application.
views:
67answers:
2Actually I need to put Image with text in that column.
2010-07-19 09:23:49
Actually, you did not say that...
leppie
2010-07-19 09:27:12
tnx for your help buddy but I need more of that...
2010-07-19 09:33:55
Unfortunately, I cannot help you getting text and a image. You will probably have to resort making your own custom `DataGridViewColumn`.
leppie
2010-07-19 09:44:54
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
2010-07-19 11:19:31