Back to Devexpress

Edit Form

aspnet-4637-components-tree-list-concepts-data-editing-edit-form.md

latest2.4 KB
Original Source

Edit Form

  • Dec 17, 2020

To allow end-users to edit data via the built-in Edit Form , set the TreeListSettingsEditing.Mode property to TreeListEditMode.EditForm, TreeListEditMode.EditFormAndDisplayNode or TreeListEditMode.PopupEditForm.

The Edit Form is displayed in the image below:

The Edit Form displays edit cells that correspond to data columns, and the Cancel / Update commands, that allow end-users to discard the changes made or save them to a database.

Each edit cell displays a column caption and the corresponding editor. Individual columns provide settings for individual edit cells, and this allows you to provide various Edit Form layouts. These settings are listed below:

PropertyDescription
TreeListColumnEditFormSettings.CaptionLocationSpecifies the location of the edit cell’s caption.
TreeListColumnEditFormSettings.VisibleSpecifies whether the edit cell that corresponds to the current data column is displayed within the Edit Form.
TreeListColumnEditFormSettings.VisibleIndexSpecifies the edit cell’s position within the Edit Form.
TreeListColumnEditFormSettings.ColumnSpanSpecifies the number of columns in the Edit Form that the cell spans.
TreeListColumnEditFormSettings.RowSpanSpecifies the number of rows in the Edit Form that the cell spans.

The default layout is generated automatically. You can provide custom layouts for the Edit Form via the TreeListTemplates.EditForm template.