Skip to content

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

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/XAF-how-to-add-an-unbound-column-to-gridlisteditor-to-execute-a-custom-action-for-a-record

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Does this example address your development requirements/objectives?

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