BCGControlBar Library for .NET
ClearFilter(Int32,Boolean) Method




Specifies index of data item within row item collection for which clear the filter.
If true, the method will adjust grid layout. Should be true if there will be no subsequent calls on any methods that change layout.
Clears filter within entire grid.
Syntax
'Declaration
 
Public Overloads Sub ClearFilter( _
   ByVal dataIndex As Integer, _
   ByVal adjustLayout As Boolean _
) 
'Usage
 
Dim instance As GridControl
Dim dataIndex As Integer
Dim adjustLayout As Boolean
 
instance.ClearFilter(dataIndex, adjustLayout)
public void ClearFilter( 
   int dataIndex,
   bool adjustLayout
)
public: void ClearFilter( 
   int dataIndex,
   bool adjustLayout
) 
public:
void ClearFilter( 
   int dataIndex,
   bool adjustLayout
) 

Parameters

dataIndex
Specifies index of data item within row item collection for which clear the filter.
adjustLayout
If true, the method will adjust grid layout. Should be true if there will be no subsequent calls on any methods that change layout.
Remarks

dataIndex can be -1 if GridData.SingleFilterMode is true. In this case filter is set per row.

GridData.SingleFilterMode is false and you're setting filters per data item,  dataIndex should specify actual index of GridDataItem in GridDataRow.ItemCollection.

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

GridControl Class
GridControl Members
Overload List

Send Feedback