GrapeCity MultiRow Windows Forms Documentation
FilterComparisonOperator Property
Example 


Gets or sets which condition is applied when filtering.
Syntax
<SRDescriptionAttribute("Indicates which condition is applied when filtering.")>
<DefaultValueAttribute()>
<SRCategoryAttribute("Behavior")>
Public Property FilterComparisonOperator As FilterComparisonOperator
Dim instance As FilteringTextBoxCell
Dim value As FilterComparisonOperator
 
instance.FilterComparisonOperator = value
 
value = instance.FilterComparisonOperator
[SRDescription("Indicates which condition is applied when filtering.")]
[DefaultValue()]
[SRCategory("Behavior")]
public FilterComparisonOperator FilterComparisonOperator {get; set;}

Property Value

One of the FilterComparisonOperator values. The default is FilterComparisonOperator.StartsWith.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe specified value is not one of the FilterComparisonOperator values.
Remarks
You can use the provided operator, or customize the comparison operation by implementing an System.Collections.IComparer and setting it to the CustomComparisonOperator property. If you customize the comparison operation, set this property to FilterComparisonOperator.Custom.
Example
The following code example shows how to customize a filtering text box cell's behavior or appearance. This code example is part of a larger example provided for the FilteringTextBoxCell class.
private Cell CreateTextFilterCell()
        {
            FilteringTextBoxCell filteringTextBoxCell = new FilteringTextBoxCell();

            filteringTextBoxCell.FilteringCellIndex = 0;
            filteringTextBoxCell.ComparisonType = StringComparison.InvariantCultureIgnoreCase;
            filteringTextBoxCell.FilterComparisonOperator = FilterComparisonOperator.StartsWith;

            return filteringTextBoxCell;
        }
Private Function CreateTextFilterCell() As Cell
        Dim filteringTextBoxCell As New FilteringTextBoxCell()

        filteringTextBoxCell.FilteringCellIndex = 0
        filteringTextBoxCell.ComparisonType = StringComparison.InvariantCultureIgnoreCase
        filteringTextBoxCell.FilterComparisonOperator = FilterComparisonOperator.StartsWith

        Return filteringTextBoxCell
    End Function
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FilteringTextBoxCell Class
FilteringTextBoxCell Members
CustomComparisonOperator Property

 

 


Copyright © GrapeCity, inc. All rights reserved.