Back to Devexpress

CustomizeCellEventArgs.Value Property

corelibraries-devexpress-dot-export-dot-customizecelleventargs.md

latest3.3 KB
Original Source

CustomizeCellEventArgs.Value Property

Specifies the value of the cell currently being processed.

Namespace : DevExpress.Export

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public object Value { get; set; }
vb
Public Property Value As Object

Property Value

TypeDescription
Object

An object which represents the processed cell’s value.

|

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.

winforms-grid-customize-data-aware-export-output/CS/GridDataAwareExportCustomization/Form1.cs#L78

csharp
if(e.ColumnFieldName == "Discontinued") {
    if(e.Value is bool) {
        e.Handled = true;

asp-net-mvc-grid-export-colored-grid-in-data-aware-mode/CS/Controllers/HomeController.cs#L30

csharp
if(ea.AreaType != DevExpress.Export.SheetAreaType.Header && ea.ColumnFieldName == "UnitPrice") {
    if(Convert.ToDecimal(ea.Value) > 15)
        ea.Formatting.BackColor = System.Drawing.Color.Yellow;

winforms-grid-customize-data-aware-export-output/VB/GridDataAwareExportCustomization/Form1.vb#L78

vb
If e.ColumnFieldName = "Discontinued" Then
    If TypeOf e.Value Is Boolean Then
        e.Handled = True

asp-net-mvc-grid-export-colored-grid-in-data-aware-mode/VB/Controllers/HomeController.vb#L31

vb
If ea.ColumnFieldName = "UnitPrice" Then
    If Convert.ToInt32(ea.Value) > 15 Then
        ea.Formatting.BackColor = System.Drawing.Color.Yellow

See Also

CustomizeCellEventArgs Class

CustomizeCellEventArgs Members

DevExpress.Export Namespace