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.1.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.
Related GitHub Examples
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.