摘要:
以combobox为例。 假如一行里面只有一个combobox。 //在类中声明一个控件数组 private ComboBox[] cmds = null; //initview中调用dao组件获得显示的对象列表 List plist = idao.queryIndicators(); //根据对象列表个数new一组cmds cmds=new ComboBox[plist.Count]; //在view的SelectedIndexChanged事件中 if (this.listView1.SelectedItems.Count > 0) ... 阅读全文
posted @ 2013-08-08 12:55
追逐.
阅读(396)
评论(0)
推荐(0)
摘要:
Winform窗口中,控件listview是无法设置行高的。以加入一个imagelist(图片列表控件)实现行高的设置。ImageList imageList = new ImageList();imageList.ImageSize = new System.Drawing.Size(10, 20); //分别是宽和高listView1.SmallImageList = imageList; 阅读全文
posted @ 2013-08-08 12:40
追逐.
阅读(1547)
评论(0)
推荐(0)
浙公网安备 33010602011771号