method ExFileView.AddColumnCustomFilter (ColumnName as String, Caption as String, Filter as String)
Adds a custom filter to the column. /*not supported in the lite version*/

TypeDescription
ColumnName as String A string expression that indicates the column's name. The valid values are: 'Name', 'Size', 'Modified', 'Type', 'In Folder'
Caption as String A string expression that indicates the caption for filter pattern.
Filter as String A string expression that indicates filter pattern being added. The Filter parameter supports wild characters like: ?, *, ...

Use the AddColumnCustomFilter method to add custom filter patterns to the control's drop down filter window.  Use the ColumnFilterButton property to display the filter button in the column's header. Use the ColumnFilter, ColumnFilterType properties and ApplyFilter method to apply a filter to the control's content. Use the ClearColumnCustomFilters method to clear the list of custom filter patterns. Use the FilterBarDropDownHeight property to specify the drop down filter window. A pattern filter may contain the wild card characters '?' for any single character, '*' for zero or more occurrences of any character, '#' for any digit character, '^' negates the pattern, '|' determines the options in the pattern. For instance: '*.bat|*.exe' specifies all files that have the 'bat' or 'exe' extension.

The following VB sample adds custom filter patterns for executable files:

With ExFileView1
    .FilterBarDropDownHeight = 0.7
    .ColumnFilterButton("Name") = True
    .AddColumnCustomFilter "Name", "(Executable files)", "*.exe|*.com|*.bat"
End With

The following C++ sample adds custom filter patterns for executable files:

m_fileview.SetFilterBarDropDownHeight( 0.7 );
m_fileview.SetColumnFilterButton("Name", TRUE );
m_fileview.AddColumnCustomFilter("Name", "(Executable files)", "*.exe|*.com|*.bat");

The following VB.NET sample adds custom filter patterns for executable files:

With AxExFileView1
    .FilterBarDropDownHeight = 0.7
    .set_ColumnFilterButton("Name", True)
    .AddColumnCustomFilter("Name", "(Executable files)", "*.exe|*.com|*.bat")
End With

The following C# sample adds custom filter patterns for executable files:

axExFileView1.FilterBarDropDownHeight = 0.7;
axExFileView1.set_ColumnFilterButton("Name", true);
axExFileView1.AddColumnCustomFilter("Name", "(Executable files)", "*.exe|*.com|*.bat");

The following VFP sample adds custom filter patterns for executable files:

With thisform.ExFileView1
    .FilterBarDropDownHeight = 0.7
    .Object.ColumnFilterButton("Name") = .t.
    .AddColumnCustomFilter("Name", "(Executable files)", "*.exe|*.com|*.bat")
EndWith