Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseImageListBoxControl.ImageIndexMember Property

Gets or sets the name of the data source field that provides image indexes for listbox items. This property is not supported when listbox items are rendered based on Item Templates.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue("")]
[DXCategory("Data")]
public virtual string ImageIndexMember { get; set; }

#Property Value

Type Default Description
String String.Empty

A string value specifying the name of the data source field whose contents represent image indexes.

#Remarks

The ImageListBoxControl can be bound to data using the BaseListBoxControl.DataSource property. Use ImageIndexMember to define the data source field that provides the indexes of the images displayed within the items. These indexes address images in the image collection specified by the BaseImageListBoxControl.ImageList property.

Changing the ImageIndexMember property value at runtime raises the BaseImageListBoxControl.ImageIndexMemberChanged event.

Note

The ImageIndexMember property is not supported when items are rendered based on Item Templates.

You can also use the BaseImageListBoxControl.ImageMember property to assign images from the data source to items. BaseImageListBoxControl.ImageMember has priority over ImageIndexMember.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageIndexMember property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also