A newer version of this page is available. Switch to the current version.

Regular and Checked Drop-down Filters

  • 3 minutes to read

The drop-down filter can be a regular list of items (select one item at a time) or a checked list (select/check items simultaneously).

FilterDropdownLists

Drop-down filters for non-date-time columns are regular lists. To use a checked drop-down filter for a column, set the column's ColumnBase.FilterPopupMode property to FilterPopupMode.CheckedList.

The following table summarizes the differences between regular and checked drop-down filters:

Feature

Regular Drop-down Filter

Checked Drop-down Filter

Selection

One item at a time can be selected.

Multiple items can be selected simultaneously.

Clear filter

Click the (All) item. This cancels the current column's filters.

Click the (Select All) item.

MRU items (most recently used items)

Yes

Use the DataControlBase.AllowColumnMRUFilterList property to show/hide MRU items.

Use the DataControlBase.MRUColumnFilterListCount property to specify the maximum number of MRU items.

No

(Blanks) and (Non Blanks) items

Yes

(Blanks) - Displays records with DBNull values in the current column.

(Non Blanks) - Displays records without DBNull values in the current column.

Yes

Set DataControlBase.ImplyNullLikeEmptyStringWhenFiltering to true.

Add custom items

Yes

No

Delete individual items

Yes

Yes

Limit the number of items

Yes

A drop-down filter displays all unique values in a column. Specify the ColumnBase.ColumnFilterPopupMaxRecordsCount property to limit the number of items in the drop-down filter.

Yes

A drop-down filter displays all unique values in a column. Specify the ColumnBase.ColumnFilterPopupMaxRecordsCount property to limit the number of items in the drop-down filter.

Display only the records that meet the current filter criteria

Yes

Set the DataControlBase.ShowAllTableValuesInFilterPopup (ColumnBase.ShowAllTableValuesInFilterPopup) property to false.

Yes

Set the DataControlBase.ShowAllTableValuesInCheckedFilterPopup (ColumnBase.ShowAllTableValuesInCheckedFilterPopup) property to false.

Immediate update

Selecting an item automatically updates the column's filter and closes the drop-down filter.

Use the ColumnBase.ImmediateUpdateColumnFilter property to enable or disable automatic updates. If automatic updates are disabled, the filter is applied after the drop-down filter is closed.

Allowed filters

If AllowedBinaryFilters.Equals is disabled, the drop-down filter hides unique values.

If AllowedUnaryFilters.IsNull is disabled, the drop-down filter list hides the (Blanks) item.

If AllowedUnaryFilters.IsNotNull is disabled, the drop-down filter list hides the (NotBlanks) item.

The filter button is hidden if all these criteria are disabled.

For non-nullable columns:

For nullable columns:

For non-nullable date-time columns when the ColumnBase.RoundDateTimeForColumnFilter is true and the ColumnBase.ColumnFilterMode is Value:

For nullable date-time columns when the ColumnBase.RoundDateTimeForColumnFilter is true and the ColumnBase.ColumnFilterMode is Value: