Skip to main content

RowCellCustomDrawEventArgs.CellValue Property

Gets the painted value or display text (depending on the event).

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public object CellValue { get; set; }

Property Value

Type Description
Object

An object representing the painted cell’s value.

Remarks

The CellValue property returns different values for different events:

Event(s)

CellValue content

GridView.CustomDrawCell

CardView.CustomDrawCardFieldValue

LayoutView.CustomDrawCardFieldValue

The field value.

Note

To get the field value converted to a string based on the column value display format, use the RowCellCustomDrawEventArgs.DisplayText property.

CardView.CustomDrawCardField

A string that specifies the field value converted to text using the column value display format.

Note

The column value display format can be specified with the GridColumn.DisplayFormat property.

CardView.CustomDrawCardFieldCaption

LayoutView.CustomDrawCardFieldCaption

A string value that specifies the field caption.

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