Skip to content

This examples connect the WinForms Data Grid to a Secure Backend with the DevExpress Web API Service (EF Core with OData).

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/connect-winforms-grid-to-webapi-service

Repository files navigation

Connect the WinForms Data Grid to a Secure Backend with the DevExpress Web API Service (EF Core with OData)

The following example demonstrates the following:

  1. How to build a data model for application business entities and security policies with EF Core.
  2. How to securely load data from OData endpoints to a WinForms UI client using the DevExpress WinForms Data Grid control.
  3. How to activate authentication and authorization for the WinForms application using custom Web API endpoints (powered by the DevExpress Backend Web API Service).
  4. How to create a login form and customize its user interface elements based on access permissions.

Getting Started

  1. Open WebApiExampleAll.sln. Register a DevExpress NuGet feed in the Visual Studio IDE. Skip this step if you have already registered the DevExpress NuGet feed.

  2. Restore NuGet packages in the solution:

    Restore NuGet Packages in the Solution

  3. Run the OData.Server project. Right-click OData.Server in the Solution Explorer and select Debug | Start New Instance in the menu. Your default web browser will open. Starting the Web API server for the first time can take up to 20 seconds.

    IMPORTANT

    Do not close the web browser.

  4. Run the WinForms.Client project. Right-click WinForms.Client in the Solution Explorer and select Debug | Start New Instance in the menu.

  5. Click "Log in" to proceed. The password for Admin and User accounts is "QQQ". You can sort, filter, and group grid rows (records) as needed. Double-click a grid row to open the edit form and modify cell values:

    DevExpress WinForms Client Application

See Also

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This examples connect the WinForms Data Grid to a Secure Backend with the DevExpress Web API Service (EF Core with OData).

Topics

Resources

License

Stars

Watchers

Forks