Skip to main content
All docs
V23.2
.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.

IDxGridInstanceProvider.ComponentCaptured Event

Allows you to access the DxGrid instance.

Namespace: DevExpress.ExpressApp.Blazor.Editors

Assembly: DevExpress.ExpressApp.Blazor.v23.2.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