

Alternatively, you can invoke edit forms from a Navigation Page. The command works like an InitNewRow event handler and allows you to initialize a new row in a View Model. The data source object class has a parameterless constructor.įor correct navigation, your app should be a Shell app.The CollectionView ItemsSource is not empty or it contains a strongly typed collection.Default Form RequirementsĭataGridView invokes the predefined detail view and edit forms when the following conditions are met: When implementing custom CRUD forms, call the DetailFormViewModelBase.Delete method or use the DetailFormViewModelBase.DeleteCommand property to delete the displayed item. Users can also tap the Delete button in an edit form to remove the DataGridView item:Ĭall the DataGridView.DeleteRow method to remove the DataGridView row with the given row handle.


DataTable dt new DataTable () dt.Columns.Add ('mycolumn') dt Then it should work. If you want a simple, in-memory data source, you can use DataTable. The following example shows how to invoke the Edit form for the tapped grid row: 1 Answer Sorted by: 1 Devexpress grid should have a data source to function correctly. Public class TestOrderRepository : OrderRepository Ĭall the DataGridView.ShowDetailEditForm method or use the DataGridViewCommands.ShowDetailEditForm command to invoke the Edit form. This.orders = new ObservableCollection()
