如何将ImageList添加到DataGridView列 [英] How to add ImageList to the DataGridView coloumn
本文介绍了如何将ImageList添加到DataGridView列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我在Windows窗体中使用DataGridView控件.有人可以建议我如何将ImageList控件设置为网格的Coloum的ColoumType.我的要求是,我必须从Grid单元格的图像组合框中选择一个图像.请建议我该怎么做.
提前谢谢.
问候,
Anil
解决方案
^ ]
尝试
dataGridView1.Rows.Add("Value1", "Value2", imageList1.Images[Index]);
http://social.msdn.microsoft.com/forums/en-US/winformsdatacontrols/thread/ec0c18be-3015-4eee-bda7-e17ecfc54a7c[^]
Try
dataGridView1.Rows.Add("Value1", "Value2", imageList1.Images[Index]);
Navigate given article
Images in a Data Grid[^]
这篇关于如何将ImageList添加到DataGridView列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文