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

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.v19.2.dll

Declaration

[DXCategory("Data")]
[DefaultValue("")]
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.

See Also