过滤不同的多列表视图 [英] filter different multiple listview

查看:66
本文介绍了过滤不同的多列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有listview,我使用数据表填充



然后我使用复选框onselected事件,并过滤一些数据表值并在listview中再次填充...



我有2个不同的过滤器选项,但是当我同时使用两者时,只应用过滤器。



怎么样?我为exp制作。



过滤器1和填充列表视图,当应用过滤器2时,获取listview的值,并使用filter2值获取该过滤器的值



或你建议做什么



因为,当调用checkbox事件时,我过滤表然后将表添加到listview



如何在同一列表视图中使用不同的过滤器

I have listview,which i fill using datatable

then i use checkbox onselected event , and filter some values datatable and fill again in listview ...

I have 2 different filter options , but when i use both , only filter is applied.

How can i make for exp.

filter 1 and fill listview,,and when filter 2 applied, get values of listview and from that filter with filter2 values

or u suggest what to do

Because, when checkbox event called, i filter table and then add table to listview

How to use different filter in same listview

推荐答案

您好



您可以使用 Dataview 对象,它是DataTable的数据表,自定义视图,用于排序,过滤,搜索,编辑和导航。 DataView不存储数据,而是表示其相应DataTable的连接视图。只需按照这些链接知道如何使用 DataView 之后从数据库中读取数据并填入 DataView 然后用户 DataView 过滤设施;-)



DataView类

C#中的DataView

如何过滤数据视图中的数据

DataView RowFilter语法[C#]

DataViews和Data Binding-Searching一个DataView



最好的问候。
Hi

You can use Dataview object,it is a databindable, customized view of a DataTable for sorting, filtering, searching, editing, and navigation. The DataView does not store data, but instead represents a connected view of its corresponding DataTable. just follow of these links for know how to use DataView after that read you data from database and fill into DataView then user DataView filter facilities ;-)

DataView Class
DataView in C#
How to filter data in dataview
DataView RowFilter Syntax [C#]
DataViews and Data Binding—Searching a DataView

Best Regards.


这篇关于过滤不同的多列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆