How to: Filter List Views on the UI Specific Level 如何:筛选 UI 特定级别上的列表视图

This topic describes how to specify a filter to be used in a control that visualizes a specific List View (e.g., GridControl or ASPxGridView control.

本主题介绍如何指定要在可视化特定列表视图(例如,网格控制或 ASPxGridView 控件)的控件中使用的筛选器。

Note 注意
Mobile applications do not support client-side filtration, so the approach described in this topic cannot be implemented on the Mobile platform.
移动应用程序不支持客户端过滤,因此本主题中描述的方法无法在移动平台上实现。

Run the Model Editor and navigate to the required List View node (e.g., Views | Contact_ListView). In the property grid to the right, find the IModelListView.Filter property and click the ellipsis button to the right of the property value. In the invoked Filter Builder, specify the required filter.

运行模型编辑器并导航到所需的列表视图节点(例如,视图 |Contact_ListView)。在右侧的属性网格中,找到 IModelListView.Filter 属性,然后单击属性值右侧的省略号按钮。在调用的筛选器生成器中,指定所需的筛选器。

ListView_Filter

The result is demonstrated in the images below.

结果如下图所示。

WinForms:

ListView_Filter_Win

ASP.NET:

ListView_Filter_Web

 
原文地址:https://www.cnblogs.com/foreachlife/p/How-to-Filter-List-Views-on-the-UI-Specific-Level.html