检查C#Device Application中的ListView项 [英] Check ListView Item in C# Device Application
本文介绍了检查C#Device Application中的ListView项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在开发.Net C#设备应用程序,我有一个列表视图,我在哪里显示数据。
我的意图是不显示重复列表视图上的数据。
感谢和问候
Indrajit dasgupta
Hi All,
I am working on .Net C# device application where I have a list view where I am displaying data.
My intention is not to display duplicate data on listview.
Thanks & Regards
Indrajit dasgupta
推荐答案
您可以使用LINQDISTINCT
[ ^ ]在将数据加载到列表视图之前过滤掉数据。
这是一个例子 - http://geekswithblogs.net /WinAZ/archive/2010/04/07/using-linq-distinct-with-an-example-on-asp.net-mvc-selectlistitem.aspx [ ^ ]。
You can use LINQDISTINCT
[^] to filter out data before loading it into the list view.
Here is an example - http://geekswithblogs.net/WinAZ/archive/2010/04/07/using-linq-distinct-with-an-example-on-asp.net-mvc-selectlistitem.aspx[^].
这篇关于检查C#Device Application中的ListView项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文