IDxGridInstanceProvider.ComponentCaptured Event
Allows you to access the DxGrid instance.
Namespace: DevExpress.ExpressApp.Blazor.Editors
Assembly: DevExpress.ExpressApp.Blazor.v23.1.dll
NuGet Package: DevExpress.ExpressApp.Blazor
Declaration
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