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:
- In the
Order
class, declare a publicSimpleBusinessAction
method that toggles theActive
property. - 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).
- How to: Add a Grid Column with an Action (ASP.NET Core Blazor and ASP.NET Web Forms)
- How to: Access the Grid Component in a List View
- Assign Editors to Individual Cells
- ActionAttribute Class
(you will be redirected to DevExpress.com to submit your response)