Back to Devexpress

UnboundColumnDataEventArgs.Value Property

corelibraries-devexpress-dot-data-dot-unboundcolumndataeventargs-3a0aa342.md

latest5.2 KB
Original Source

UnboundColumnDataEventArgs.Value Property

Gets or sets a cell value in an unbound column.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

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

Property Value

TypeDescription
Object

A cell value in an unbound column.

|

Remarks

Read the following help topic for additional information: Tutorial - Unbound Columns.

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-create-populate-unbound-column/CS/WindowsApplication1/Form1.cs#L48

csharp
if (e.IsGetData)
    e.Value = _Cache.GetValue(e.Row);
if (e.IsSetData)

winforms-grid-multiple-row-selection-web-style-checkboxes/CS/E1271/CheckMarkSelection.cs#L201

csharp
if(e.IsGetData)
    e.Value = IsRowSelected(View.GetRowHandle(e.ListSourceRowIndex));
else

winforms-grid-tokenedit-in-unbound-column/CS/Form1.cs#L72

csharp
}
    e.Value = ids;
} else {

winforms-grid-popupcontaineredit-with-dynamic-content/CS/Q148684/Form1.cs#L66

csharp
if (e.IsGetData)
    e.Value = unboundData[e.ListSourceRowIndex];
else if (e.IsSetData)

winforms-grid-display-pictures-from-field-with-image-paths/CS/Form1.cs#L244

csharp
}
    e.Value = Images[fileName];
}

winforms-grid-create-populate-unbound-column/VB/WindowsApplication1/Form1.vb#L45

vb
Private Sub gridView1_CustomUnboundColumnData(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Base.CustomColumnDataEventArgs)
    If e.IsGetData Then e.Value = _Cache.GetValue(e.Row)
    If e.IsSetData Then _Cache.SetValue(e.Row, e.Value)

winforms-grid-multiple-row-selection-web-style-checkboxes/VB/E1271/CheckMarkSelection.vb#L234

vb
If e.IsGetData Then
    e.Value = IsRowSelected(View.GetRowHandle(e.ListSourceRowIndex))
Else

winforms-grid-tokenedit-in-unbound-column/VB/Form1.vb#L69

vb
e.Value = ids
Else

winforms-grid-popupcontaineredit-with-dynamic-content/VB/Q148684/Form1.vb#L69

vb
If e.IsGetData Then
    e.Value = unboundData(e.ListSourceRowIndex)
ElseIf e.IsSetData Then

winforms-grid-display-pictures-from-field-with-image-paths/VB/Form1.vb#L233

vb
e.Value = Images(fileName)
End If

See Also

UnboundColumnDataEventArgs.ValueType

UnboundColumnDataEventArgs Class

UnboundColumnDataEventArgs Members

DevExpress.Data Namespace