Skip to main content
A newer version of this page is available. .

CustomDrawRowValueCellEventArgs.CellIndex Property

Gets the index of the painted row data cell.

Namespace: DevExpress.XtraVerticalGrid.Events

Assembly: DevExpress.XtraVerticalGrid.v19.2.dll

Declaration

public int CellIndex { get; }

Property Value

Type Description
Int32

A zero-based integer representing the painted cell’s index.

Remarks

Rows (represented by the MultiEditorRow class) are capable of displaying several header cells and thus several cells within each record. Use the CellIndex property when it is necessary to identify which cell within the processed record is going to be painted. It can be useful for instance, when custom paint cells located at a specific position.

If it is necessary to obtain the record where the painted cell resides, use the CustomDrawRowValueCellEventArgs.RecordIndex property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CellIndex 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