GrapeCity MultiRow Windows Forms Documentation
FilteringCellIndex Property (FilteringTextBoxCell)
Example 


Gets or sets the cell index of the corresponding Cell whose value is filtered in each Row.
Syntax
<RefreshPropertiesAttribute(RefreshProperties.All)>
<DefaultValueAttribute()>
<SRCategoryAttribute("Behavior")>
<SRDescriptionAttribute("Indicates the cell index of the corresponding cell whose value is filtered in each row.")>
Public Property FilteringCellIndex As Integer
Dim instance As FilteringTextBoxCell
Dim value As Integer
 
instance.FilteringCellIndex = value
 
value = instance.FilteringCellIndex
[RefreshProperties(RefreshProperties.All)]
[DefaultValue()]
[SRCategory("Behavior")]
[SRDescription("Indicates the cell index of the corresponding cell whose value is filtered in each row.")]
public int FilteringCellIndex {get; set;}

Property Value

A System.Int32 value that represents the cell index of the corresponding cell. The default is -1.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException The assigned value is less than -1.
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.