Show / Hide Table of Contents

    IDwTable.Filter Property

    .NET Standard 2.x

    Gets or sets the filter for the DataWindow.

    Namespace: DWNet.Data

    Assembly: DWNet.Data.dll

    Syntax

       IExpressionable<string> Filter { get; set; }
    

    Property Value

    DWNet.Data.IExpressionable

    An IExpressionable<string> object which represents the filter for the DataWindow.

    Remarks

    Filters are expressions that can evaluate to true or false. The Filter property filters the data before it is retrieved. To filter data in the DataWindow buffer, use the IDataStore.SetFilter and IDataStore.Filter methods.

    Examples

    The following code example demonstrates how to get the DataWindow.Table.Filter property.

    using DWNet.Data;
    using System;
    
    namespace Appeon.ApiDoc.IDwTableExamples
    {
        public class FilterExample
        {
            private readonly SchoolContext _context;
    
            public FilterExample(SchoolContext context)
            {
                _context = context;
            }
    
            public void Example()
            {
                // Creates a new DataStore object.
                var course = new DataStore("d_course", _context);
    
                // Gets the DataWindow.Table.Filter.
                var filter = course.DwMeta.DataWindow.Table.Filter;
    
                // A string containing the filter defined in the DataWindow. 
                string expression = filter.Expression;
            }
        }
    }
    

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon