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

ExcelFilteringDataEventArgs.DataItems Property

Provides access to the collection of data values by which the column being processed can be filtered, and the corresponding display texts.

Namespace: DevExpress.XtraEditors.Filtering

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public List<ExcelFilterDataItem> DataItems { get; }

Property Value

Type Description
List<DevExpress.XtraEditors.Filtering.ExcelFilterDataItem>

A List<T><DevExpress.XtraEditors.Filtering.ExcelFilterDataItem,> object specifying the collection of data values by which the column being processed can be filtered.

Remarks

The code snippet below shows how to remove all items except for the first five from the DataItems collection.


e.DataItems.RemoveRange(5, e.DataItems.Count - 5);

You can also use the ExcelFilteringDataEventArgs.AddData and ExcelFilteringDataEventArgs.RemoveData methods to handle the collection’s items.

See Also