'Declaration Public Overloads Function ApplyCustomFilter( _ ByVal condition1 As CustomFilterCondition, _ ByVal condition2 As CustomFilterCondition, _ ByVal conditionalOperator As ConditionalOperator _ ) As CustomFilter
public CustomFilter ApplyCustomFilter( CustomFilterCondition condition1, CustomFilterCondition condition2, ConditionalOperator conditionalOperator )
Exception | Description |
---|---|
System.ArgumentNullException | condition1 is null. |
System.ComponentModel.InvalidEnumArgumentException | conditionalOperator is not defined in the Infragistics.Documents.Excel.Filtering.ConditionalOperator enumeration. |
System.InvalidOperationException | The WorksheetTable.IsFilterUIVisible value of the owning table is False. Filters cannot be applied when the header row or filter button is hidden. |
If condition2 is null, the conditionalOperator value is irrelevant.
Note: If one of the filter condition values is longer than 255 characters in length and the workbook is saved in one of the 2003 formats, the correct rows will be hidden in the saved file, but the filter will be missing from the column.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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