Skip to content

DevExpress-Examples/wpf-data-grid-implement-crud-operations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implement CRUD Operations in the WPF Data Grid

This example shows how to implement CRUD operations (create, read, update, and delete) in the Data Grid bound to different data sources. Refer to the following topic for information on these operations: Implement CRUD Operations in a Data-Bound Grid.

CRUD operations

The example includes multiple solutions that demonstrate:

See also: How to Bind the WPF Data Grid to Data

A 1-Click Solution for CRUD Web API Services with Role-based Access Control via EF Core & XPO

If you target .NET for your backend API, be sure to check out our free Web API Service and register your FREE copy today. The Solution Wizard scaffolds an OData v4 Web API Service (.NET 6+) with integrated authorization & CRUD operations powered by EF Core and our XPO ORM library. You can use OAuth2, JWT or custom authentication strategies alongside tools like Postman or Swagger (OpenAPI) for API testing. Among its numerous capabilities, our built-in Web API Service filters out secured server data based on permissions granted to users. Advanced/enterprise functions include audit trail, endpoints to download reports, file attachments, check validation, obtain localized captions, etc. To use the free Solution Wizard (which creates the Web API Service) run the Universal Component Installer from the DevExpress Download Manager.

Building Issues

If you build the .NET 5 app and then try to build the .NET Framework app, the following error occurs:

Your project does not reference '.NETFramework, Version = v4.7.2' framework. Add a reference to '.NETFramework,Version = v4.7.2' in the 'TargetFrameworks' property of your project file and then re-run NuGet restore.

To fix this issue, remove the obj folder from the app.

Files to Look At

C#

MVVM

Entity Framework 6 ? Entity Framework Core ? DevExpress XPO ?
Local Data ? project, code, xaml project, code, xaml project, code, xaml
Infinite Async Source ? project, code, xaml project, code, xaml project, code, xaml
Paged Async Source ? project, code, xaml project, code, xaml project, code, xaml
Instant Feedback Mode ? project, code, xaml project, code, xaml project, code, xaml
Server Mode ? project, code, xaml project, code, xaml project, code, xaml

Code-behind

Entity Framework 6 ? Entity Framework Core ? DevExpress XPO ?
Local Data ? project, code, xaml project, code, xaml project, code, xaml
Infinite Async Source ? project, code, xaml project, code, xaml project, code, xaml
Paged Async Source ? project, code, xaml project, code, xaml project, code, xaml
Instant Feedback Mode ? project, code, xaml project, code, xaml project, code, xaml
Server Mode ? project, code, xaml project, code, xaml project, code, xaml

Visual Basic

MVVM

Entity Framework 6 ? Entity Framework Core ? DevExpress XPO ?
Local Data ? project, code, xaml project, code, xaml project, code, xaml
Infinite Async Source ? project, code, xaml project, code, xaml project, code, xaml
Paged Async Source ? project, code, xaml project, code, xaml project, code, xaml
Instant Feedback Mode ? project, code, xaml project, code, xaml project, code, xaml
Server Mode ? project, code, xaml project, code, xaml project, code, xaml

Code-behind

Entity Framework 6 ? Entity Framework Core ? DevExpress XPO ?
Local Data ? project, code, xaml project, code, xaml project, code, xaml
Infinite Async Source ? project, code, xaml project, code, xaml project, code, xaml
Paged Async Source ? project, code, xaml project, code, xaml project, code, xaml
Instant Feedback Mode ? project, code, xaml project, code, xaml project, code, xaml
Server Mode ? project, code, xaml project, code, xaml project, code, xaml

About

How to implement CRUD operations in WPF Data Grid control

Resources

License

Stars

Watchers

Forks