Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DetailFormPage Class

A form that is used to show detail information about a data control item.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
[XamlFilePath("Common/CRUD/DefaultDetailFormViews/DetailFormPage.xaml")]
public class DetailFormPage :
    ContentPage,
    IDetailFormPage

#Remarks

Handle the DataGridView.DetailFormShowing or DXCollectionView.DetailFormShowing event and use the e.Content property to access the detail form page and customize it in the event handler.

The following example calls the DXCollectionView.ShowDetailForm method to invoke a detail view form on an item tap. In the CollectionView DetailFormShowing event handler, the example specifies the detail view form title and hides the Delete button from the toolbar:

DevExpress CollectionView for MAUI - Customize the detail view form

<dxcv:DXCollectionView ...
                       DetailFormShowing="collectionView_DetailFormShowing">
private void collectionView_DetailFormShowing(object sender, DetailFormShowingEventArgs e) {
    if (e.ViewModel is not DetailFormViewModel) return;
    DetailFormPage form = (DetailFormPage)e.Content;
    form.TitleLabel.Text = "View Contact info"; 
    form.DeleteToolbarButton.IsVisible = false;
}
private void collectionView_Tap(object sender, DevExpress.Maui.CollectionView.CollectionViewGestureEventArgs e) {
    collectionView.ShowDetailForm(e.ItemHandle);
}

For more information about detail edit forms, refer to the following help topics:

#Implements

See Also