当前位置:编程学习 > C#/ASP.NET >>

求各位大侠帮忙阿!~WinForm 如何判断ListView某列是否有重复值。

如题 --------------------编程问答--------------------
bool flag= this.listView1.Items.Cast<ListViewItem>().Select(a => a.SubItems["列名"].Text).Distinct().Count() < this.listView1.Items.Count;//返回真,则重复
补充:.NET技术 ,  .NET Framework
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,