BCGSoft.Controls.Grid Namespace > GridControl Class > ClearFilter Method : ClearFilter(Int32,Boolean) Method |
'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 )
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.
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