社区
C#
帖子详情
求助:"selectedItems"不是“system.windows.forms.listview”的成员
Merlin_Bloom
2008-12-20 04:29:05
请问:是需要添加命名空间么。。?
"selectedItems"不是“system.windows.forms.listview”的成员
...全文
56
5
打赏
收藏
求助:"selectedItems"不是“system.windows.forms.listview”的成员
请问:是需要添加命名空间么。。? "selectedItems"不是“system.windows.forms.listview”的成员
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Merlin_Bloom
2008-12-20
打赏
举报
回复
wince 5.0中,用 SelectedIndices[0] 代替了selectedItems[0] ...
这个集合只有一条数据(当前只能选中1条),所以下标为 0 。。
Merlin_Bloom
2008-12-20
打赏
举报
回复
鸵鸟。。?
freeboy827
2008-12-20
打赏
举报
回复
没有就不要用这个属性
Merlin_Bloom
2008-12-20
打赏
举报
回复
listview1 = new ListView;
item1 = listview1.selectedItems .... // 这行无法自动显示 selectedItems 。
还没有涉及到类型问题,这个lv1 就没有 selectedItems 属性。
freeboy827
2008-12-20
打赏
举报
回复
类型不对
ListView
(列表视图)
using System.
Windows
.
Forms
; namespace
ListView
_列表视图_ { public partial class Form1 : Form { public Form1() { InitializeComponent(); } static int itemNumber = 0;int a = 0; private void ...
System.
Windows
.
Forms
.
ListView
: Control
#region 程序集 System.
Windows
.
Forms
, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\
Windows
\Microsoft.NET\Framework\v2.0.50727\System.
Windows
.
Forms
.dll #endregion using ...
如何使用
ListView
控件
public class
ListView
: System.
Windows
.
Forms
.Control System.
Windows
.
Forms
的
成员
摘要: 表示
Windows
列表视图控件,该控件显示可用四种不同视图之一显示的项集合。 还是先把界面画出来,然后再来看下...
无法将类型为“System.
Windows
.Controls.
Selected
ItemCollection”的对象强制转换为类型“System.Collections.Generic.IList`1...
无法将类型为“System.
Windows
.Controls.
Selected
ItemCollection”的对象强制转换为类型“System.Collections.Generic.IList`1[SomeModel]”。 应该如此使用 System.Collections.IList
items
...
win
forms
中
ListView
控件基本用法
1: using System; 2: using System.Collections.Generic; 3: using System.ComponentModel; 4: using System.Data; 5: using System.Drawing; 6: usi...
C#
110,538
社区成员
642,577
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章