GrapeCity MultiRow Windows Forms Documentation
ComparisonType Property (FilteringTextBoxCell)
Example 


Gets or sets what culture, case, and sort rules are considered when filtering.
Syntax
<SRDescriptionAttribute("Indicates what culture, case, and sort rules should be considered when filtering.")>
<SRCategoryAttribute("Behavior")>
<DefaultValueAttribute()>
Public Property ComparisonType As StringComparison
Dim instance As FilteringTextBoxCell
Dim value As StringComparison
 
instance.ComparisonType = value
 
value = instance.ComparisonType
[SRDescription("Indicates what culture, case, and sort rules should be considered when filtering.")]
[SRCategory("Behavior")]
[DefaultValue()]
public StringComparison ComparisonType {get; set;}

Property Value

One of the System.StringComparison values. The default is System.StringComparison.Ordinal.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe specified value is not one of the System.StringComparison values.
Remarks
This property indicates how to consider culture when comparing the string.
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

 

 


Copyright © GrapeCity, inc. All rights reserved.