开发者

How to put icon in a datagrid view in C# .net 4.0 windows forms application?

开发者 https://www.devze.com 2023-01-07 16:43 出处:网络
I need to have icons in a column of a datagridview in C# .net 4.开发者_运维知识库0 windows form application.After reading the answer from @leppie and your comments i would suggest the following:

I need to have icons in a column of a datagridview in C# .net 4.开发者_运维知识库0 windows form application.


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.


Probably the same as .NET 3.5.

Just use an Image column.

0

精彩评论

暂无评论...
验证码 换一张
取 消