Back to Devexpress

UnboundColumnDataEventArgs.IsSetData Property

corelibraries-devexpress-dot-data-dot-unboundcolumndataeventargs-9dbf4496.md

latest4.9 KB
Original Source

UnboundColumnDataEventArgs.IsSetData Property

Gets whether a cell value changed and data needs to be posted to a data source.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public bool IsSetData { get; }
vb
Public ReadOnly Property IsSetData As Boolean

Property Value

TypeDescription
Boolean

true if a user modified the cell value; otherwise, false.

|

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 IsSetData 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#L49

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

winforms-grid-display-icons-in-data-cells/CS/Form1.cs#L231

csharp
private void GridView1_CustomUnboundColumnData(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDataEventArgs e) {
    if (e.IsSetData)
        return;

winforms-grid-add-radio-group-column/CS/Helper/GridRadioGroupColumnHelper.cs#L78

csharp
e.Value = e.ListSourceRowIndex == SelectedDataSourceRowIndex;
if (e.IsSetData)
    if (e.Value.Equals(true))

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

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

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

vb
If e.IsGetData Then e.Value = _Cache.GetValue(e.Row)
    If e.IsSetData Then _Cache.SetValue(e.Row, e.Value)
End Sub

winforms-grid-display-icons-in-data-cells/VB/Form1.vb#L204

vb
Private Sub GridView1_CustomUnboundColumnData(ByVal sender As Object, ByVal e As Views.Base.CustomColumnDataEventArgs)
    If e.IsSetData Then Return
    Dim view As GridView = TryCast(sender, GridView)

winforms-grid-add-radio-group-column/VB/Helper/GridRadioGroupColumnHelper.vb#L78

vb
End If
If e.IsSetData Then
    If e.Value.Equals(True) Then

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

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

See Also

UnboundColumnDataEventArgs.IsGetData

UnboundColumnDataEventArgs Class

UnboundColumnDataEventArgs Members

DevExpress.Data Namespace