Skip to main content
A newer version of this page is available. .
All docs
V22.1
.NET 6.0+
  • The page you are viewing does not exist in the .NET Framework 4.5.2+ platform documentation. This link will take you to the parent topic of the current section.
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

IDxGridInstanceProvider.ComponentCaptured Event

Allows you to access the DxGrid instance.

Namespace: DevExpress.ExpressApp.Blazor.Editors

Assembly: DevExpress.ExpressApp.Blazor.v22.1.dll

NuGet Package: DevExpress.ExpressApp.Blazor

Declaration

event EventHandler<ComponentCapturedEventArgs> ComponentCaptured

Event Data

The ComponentCaptured event's data class is DevExpress.ExpressApp.Blazor.Editors.ComponentCapturedEventArgs.

Remarks

The code sample below demonstrates how to use the IDxGridInstanceProvider.ComponentCaptured event to access DxGrid API.

public class TestController : ViewController<ListView> {
    protected override void OnViewControlsCreated() {
        base.OnViewControlsCreated();
        if(View.Editor.Control is IDxGridAdapter adapter) {
            adapter.ComponentCaptured += (s, e) => {
                e.Grid.CollapseAllGroupRows();
            };
        }
    }
}
See Also