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

CustomDrawRowValueCellEventArgs.CellValue Property

Gets the painted cell’s value.

Namespace: DevExpress.XtraVerticalGrid.Events

Assembly: DevExpress.XtraVerticalGrid.v18.2.dll

Declaration

public object CellValue { get; }

Property Value

Type Description
Object

An object representing the painted cell’s value.

Remarks

If you need to paint the cell’s value as it is displayed using default painting, use the CustomDrawRowValueCellEventArgs.CellText property to obtain the string to paint. In other cases (when the cell value cannot have a textual representation or you need to paint custom strings), use the CellValue property to determine the cell’s content.

Note that the CellValue property can also be used when implementing conditional painting. For instance, you may paint cells’ backgrounds depending on their values.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CellValue 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