Back to Devexpress

CustomDrawRowValueCellEventArgs.CellIndex Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-events-dot-customdrawrowvaluecelleventargs-3862334c.md

latest2.1 KB
Original Source

CustomDrawRowValueCellEventArgs.CellIndex Property

Gets the index of the painted row data cell.

Namespace : DevExpress.XtraVerticalGrid.Events

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

csharp
public int CellIndex { get; }
vb
Public ReadOnly Property CellIndex As Integer

Property Value

TypeDescription
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.

See Also

RecordIndex

CustomDrawRowValueCellEventArgs Class

CustomDrawRowValueCellEventArgs Members

DevExpress.XtraVerticalGrid.Events Namespace