DataGridViewHandler Class
A .NET MAUI handler for the DataGridView control.
Namespace: DevExpress.Maui.DataGrid
Assembly: DevExpress.Maui.DataGrid.dll
Declaration
public class DataGridViewHandler :
ViewHandler<DataGridView, DXGridView>
Remarks
To add a data grid to your .NET MAUI application, follow the steps below:
- Install the DevExpress.Maui.DataGrid NuGet package.
In the MauiProgram.cs file, call the UseDevExpress method to register a handler for the DataGridView class and handlers for data editors used within column cells:
using Microsoft.Maui; using Microsoft.Maui.Hosting; using Microsoft.Maui.Controls.Hosting; using DevExpress.Maui.DataGrid; using DevExpress.Maui.Editors; namespace DataGridExample { public static class MauiProgram { public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder .UseDevExpress() .UseMauiApp<App>() .ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); }); return builder.Build(); } } }
Implements
Microsoft.Maui.INativeViewHandler
Microsoft.Maui.IViewHandler
Inheritance
Object
Microsoft.Maui.Handlers.ViewHandler
Microsoft.Maui.Handlers.ViewHandler<DataGridView, DevExpress.Xamarin.iOS.Grid.DXGridView>
DataGridViewHandler
See Also