Back to Devexpress

FieldRetrievedEventArgs.FieldName Property

windowsforms-devexpress-dot-xtradatalayout-dot-fieldretrievedeventargs-117aa9d6.md

latest2.7 KB
Original Source

FieldRetrievedEventArgs.FieldName Property

Gets the data source field to which the editor is bound.

Namespace : DevExpress.XtraDataLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public string FieldName { get; }
vb
Public ReadOnly Property FieldName As String

Property Value

TypeDescription
String

The bound data source field.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FieldName 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-dashboard-custom-properties/CS/WinForms-Dashboard-Custom-Properties/Modules/ConstantLineUserValueModule.cs#L133

csharp
dataLayoutControl.FieldRetrieved += (s, e) => {
    if(e.FieldName == nameof(ConstantLineModuleData.PaneName))
        InitRepositoryItem(e.RepositoryItem, paneNames);

winforms-dashboard-custom-properties/VB/WinForms-Dashboard-Custom-Properties/Modules/ConstantLineUserValueModule.vb#L141

vb
AddHandler dataLayoutControl.FieldRetrieved, Sub(s, e)
    If e.FieldName = NameOf(ConstantLineModuleData.PaneName) Then
        InitRepositoryItem(e.RepositoryItem, paneNames)

See Also

FieldRetrievedEventArgs Class

FieldRetrievedEventArgs Members

DevExpress.XtraDataLayout Namespace