The AllowSelect property


We need to indicate to the controller that it will be used as a selection list controller. This is done using teh AllowSelect property.

protected override void OnLoad()
{
    Activity = Activities.Browse;
    AllowDelete = false;
    AllowInsert = false;
    AllowUpdate = false;
    AllowSelect = true;
    RowLocking = LockingStrategy.OnRowSaving;
    TransactionScope = TransactionScopes.SaveToDatabase;
    View = () => new Views.ShowOrdersView(this);
} 

This will trigger the OnSavingRow and end the controller execution whenever the user:

  1. Presses Enter
  2. Double Click the row
  3. Triggers the Select command

Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com