Table of Contents

Enum DataFormAction

Namespace
Tripous.Desktop
Assembly
Tripous.Desktop.dll

The action of a data-form, as a result of a button or mouse item click, or any other cause.

[Flags]
public enum DataFormAction
Extension Methods

Fields

Cancel = 64

Cancel.

In a IsList form: Sets the modal result to Cancel.

In a IsMaster form: When the form is in FormState.List then if the form is modal then it sets the modal result to Cancel. Else, if non-modal, then it closes the form.

In a IsMaster form: When the form is in FormState.Insert | FormState.Edit then it cancels the edit operation.

Close = 256

Close.

Closes the form.

Delete = 8

Delete. Deletes the selected row.

Can be called from both parts.

Edit = 4

Edit. Hides the list part. Displays the item part in edit mode, having selected the current row for editing.

Can be called from list part only.

Find = 1024

Find. Valid in list part only. Toggles the visibility of the filters sidebar.

Home = 512

Home. Displays the drop-down of the home button

Insert = 2

Insert. Hides the list part. Displays the item part in insert mode, for a new row to be added.

Can be called from both parts.

List = 1

List. Hides the item part. Displays the list part.

Can be called from item part only.

None = 0

None

Ok = 128

OK.

In a IsList form: It saves any changes.

In any form mode: If it is modal then it sets the modal result to OK, else just closes the form.

Refresh = 16

Refresh. Reloads the current row from the database.

Can be called from item part in edit mode only.

RefreshList = 4096

RefreshList Hides the item part. Displays the list part after executing the selected SELECT.

Save = 32

Save. Saves the changes made in the current row.

Can be called from item part only.

ToggleIds = 2048

Toggles visibility of list GroupGrid columns ending with ID.