GrapeCity MultiRow Windows Forms Documentation
UpdateFiltering Method
Example 


Updates the filtering state of the GcMultiRow control.
Syntax
<TakeCellFreezeAttribute(True)>
Public Sub UpdateFiltering() 
Dim instance As GcMultiRow
 
instance.UpdateFiltering()
[TakeCellFreeze(true)]
public void UpdateFiltering()
Remarks
When selecting an item from HeaderDropDownList or entering text in a FilteringTextBoxCell, the following rows are filtered; however, when a cell value changes, the filtering function is not implemented automatically. If you want to update a filter, after you change a cell's value, you can call this method in the CellValueChanged or CellEndEdit event.
Example
The following code example shows how to update the filter state. This code example is part of a larger example provided for the FilteringTextBoxCell class.
void gcMultiRow1_CellValueChanged(object sender, CellEventArgs e)
        {
            // After user edit, the new value of the cell should be hidden.
            // Call UpdateFiltering to Perform filter based on newest value.
            if (e.Scope == CellScope.Row && e.CellIndex == 0)
            {
                this.gcMultiRow1.UpdateFiltering();
            }
        }
Private Sub gcMultiRow1_CellValueChanged(ByVal sender As Object, ByVal e As CellEventArgs) Handles gcMultiRow1.CellValueChanged
        ' After user edit, the new value of the cell should be hidden.
        ' Call UpdateFiltering to Perform filter based on newest value.
        If e.Scope = CellScope.Row AndAlso e.CellIndex = 0 Then
            Me.gcMultiRow1.UpdateFiltering()
        End If
    End Sub
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

GcMultiRow Class
GcMultiRow Members

 

 


Copyright © GrapeCity, inc. All rights reserved.