# .NET MAUI TreeDataGrid Editing Commands

The [.NET MAUI TreeDataGrid](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/overview) control provides the following commands for editing the data inside the column:

* `BeginEdit`—Provides an entry point just before the editing begins.
* `CancelEdit`—Provides an entry point just before the editing is canceled.
* `CommitEdit`—Provides an entry point just before the editing is committed.

The execution parameter of the `Editing Commands` is of type `EditContext` that exposes the following properties:

* `CellInfo`—Gets the cell information associated with the operation.
* `TriggerAction`—Gets the `SourceTriggerAction` value that triggered the operation.
* `Parameter`—Gets an optional parameter holding additional information associated with the operation.

## BeginEdit and CommitEdit Commands Example

As the TreeDataGrid inherits from the DataGrid, for a runnable example with the Editing commands, see the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and go to **DataGrid > Commands** category.

## See Also

* [Setting the .NET MAUI TreeDataGrid Columns](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/columns/overview)
* [Sorting .NET MAUI TreeDataGrid Records](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/sorting)
* [Filtering .NET MAUI TreeDataGrid Records](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/filtering/overview)
