GithubHelp home page GithubHelp logo

devexpress-examples / xaf-how-to-add-an-unbound-column-to-gridlisteditor-to-execute-a-custom-action-for-a-record Goto Github PK

View Code? Open in Web Editor NEW
0.0 56.0 1.0 192 KB

Add an unbound column to GridListEditor to execute a custom action for a record in your XAF Windows Forms application.

License: Other

C# 72.43% HTML 27.57%
dotnet xaf asp-net-core aspnetcore custom-action entity-framework entity-framework-core expressapp expressapp-framework expressappframework gridcontrol

xaf-how-to-add-an-unbound-column-to-gridlisteditor-to-execute-a-custom-action-for-a-record's Introduction

XAF - Add a Command Column to a GridListEditor (an Unbound Column with a Custom Action)

This example adds an unbound column to the GridControl in a List View. Column cells contain buttons that invoke custom actions. When a user clicks a button, the Action obtains the selected Order object and toggles the value of the Active property.

The following image demonstrates the result:

ButtonInListEF Win_P73DZ29Ilj

Implementation Details

  1. In the Order class, declare a public SimpleBusinessAction method that toggles the Active property.
  2. Create a new unbound column and configure its editor. Add the column to the GridControl. For more information about GridControl customization, refer to the following documentation topic: Data Grid.

Note
For more information on how to implement an inline Action in an ASP.NET Core Blazor or ASP.NET Web Forms application, refer to the following documentation topic: How to: Add a Grid Column with an Action (ASP.NET Core Blazor and ASP.NET Web Forms).

Files to Review

Documentation

xaf-how-to-add-an-unbound-column-to-gridlisteditor-to-execute-a-custom-action-for-a-record's People

Contributors

abadzhev avatar anastasiakiseleva avatar andreykozhevnikov avatar devexpressexamplebot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zhangxincun

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.