Skip to main content

RowProperties.ImageIndex Property

Use the ImageIndex option accessible in RowProperties.ImageOptions to specify the index of the image displayed within a row item header.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

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 representing the zero-based index of the image displayed within a row item header.

Remarks

Use the ImageIndex property to specify the row header image for a row item. The source of these images is specified by the VGridControlBase.ImageList property. The ImageIndex property value is the index of the desired image within this image list.

RowProperties_ImageIndex

Assigning values to the ImageIndex property is not in effect if the VGridControlBase.CustomDrawRowHeaderCell event handler specifies a different row item image.

If the ImageIndex property is set to -1, no image is displayed.

Tip

You can also assign an image by its name in the collection.

// The image collection is created and populated with images at design time.
barItem.ImageOptions.Image = imageCollection1["technology_32x32"]; 
// Assign an SVG image in the SvgCollection
// barItem.ImageOptions.SvgImage = svgCollection1["technology_32x32"];

Read the following help topic for more information: Access and Use DevExpress Icons in Code.

See Also