TreeListColumn.ImageIndex Property
Gets or sets the index of the image from the TreeList.ColumnsImageList collection displayed in the column header.
Namespace: DevExpress.XtraTreeList.Columns
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
[Browsable(false)]
[DefaultValue(-1)]
[EditorBrowsable(EditorBrowsableState.Never)]
[ImageList("Images")]
[XtraSerializableProperty]
public int ImageIndex { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | -1 | An integer value specifying the image by its zero-based index in the source collection. -1 to not display an image. |
Remarks
To display images within column headers, first assign an image list to the TreeList.ColumnsImageList property. Then use a column’s ImageIndex property to assign the index of the required image within this list.
You can also use the TreeListColumn.Image property to provide the column header image.
See Also