Back to Devexpress

ViewOperationEventArgs.View Property

windowsforms-devexpress-dot-xtragrid-dot-viewoperationeventargs.md

latest2.7 KB
Original Source

ViewOperationEventArgs.View Property

Gets the currently processed View.

Namespace : DevExpress.XtraGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public BaseView View { get; }
vb
Public ReadOnly Property View As BaseView

Property Value

TypeDescription
BaseView

A BaseView class descendant that represents the currently processed View.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the View 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-select-detail-rows-when-selecting-master-row/CS/Form1.cs#L46

csharp
{
    new MasterDetailSelectionHelper(e.View as GridView);
}

winforms-grid-select-detail-rows-when-selecting-master-row/VB/Form1.vb#L40

vb
Private Sub gridControl1_ViewRegistered(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.ViewOperationEventArgs) Handles gridControl1.ViewRegistered
    Dim TempMasterDetailSelectionHelper As MasterDetailSelectionHelper = New MasterDetailSelectionHelper(TryCast(e.View, GridView))
End Sub

See Also

Views

ViewOperationEventArgs Class

ViewOperationEventArgs Members

DevExpress.XtraGrid Namespace