拆分页面和项目列表页面 [英] Split Pages and Items List Page
本文介绍了拆分页面和项目列表页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做itemsListView.Items.Add();一个项目被添加...但我如何添加内容???
I do itemsListView.Items.Add(); an item gets added... but how do I add content to it???
推荐答案
通常你在添加之前创建项目并设置其属性它到Items集合。类似于:
SomeClass myItem = new SomeClass();
myItem.Property1 =" some value" ;;
itemsListView.Items.Add(myItem);
Generally you create the item and set its properties before you add it to the Items collection. Something like:
SomeClass myItem = new SomeClass();
myItem.Property1 = "some value";
itemsListView.Items.Add(myItem);
这篇关于拆分页面和项目列表页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文