Skip to main content
A newer version of this page is available.
All docs
V19.1

CustomColumnDataEventArgs.Value Property

Gets or sets the value of the cell currently being processed.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public object Value { get; set; }

Property Value

Type Description
Object

An object representing the value of the cell currently being processed.

Remarks

If the CustomColumnDataEventArgs.IsGetData property is set to true (and consequently the CustomColumnDataEventArgs.IsSetData property is set to false) a ColumnView.CustomUnboundColumnData event handler should provide data for the cell currently being processed. You need to obtain the data for this cell from a custom data source and assign it to the Value property.

The current unbound column is identified by the CustomColumnDataEventArgs.Column property. The CustomColumnDataEventArgs.ListSourceRowIndex property can be used to identify the current row.

If the CustomColumnDataEventArgs.IsGetData property is set to false (and consequently the CustomColumnDataEventArgs.IsSetData property is set to true) a ColumnView.CustomUnboundColumnData event handler should store the value of the Value property to the data source. In this case the event is called as a result of modifying the cell’s value via the grid.

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