How to: Filter Data (Runtime Sample)

This document describes how to filter Snap list data in code. To learn how to accomplish this task by using the Snap graphical user interface, see the Filter Document Data topic.

The following method filters a Snap list, by adding a string that contains a filter expression to the SnapList.Filters collection.

using DevExpress.Snap.Core.API;
// ...
        private void FilterList(SnapList list) {
            const string filter = "[Discontinued] = False";
            if (!list.Filters.Contains(filter)) {
See Also