UIControllerGoToToNextRowAfterLastControl Property

Gets or sets the value determining if when the user is parked on the last column, and presses tab, he will automatically move to the next row.

Definition

Namespace: Firefly.Box
Assembly: Firefly.Box (in Firefly.Box.dll) Version: debug-master-v:33791
C#
public bool GoToToNextRowAfterLastControl { get; set; }

Property Value

Boolean

Example

This example demonstrates the usage of MoveToNextRowAfterLastColumnDemo
This example is based on test data. The code for the entities included in this test data can be found in the documentation of Entity
This example uses automatic tools to generate parts of the user interface. Those tools can be found in the example of the documentation of Form
C#
using Firefly.Box;
using System.Windows.Forms;

namespace TestFirefly.Box.Documentation
{
    class MoveToNextRowAfterLastColumnDemo
    {
        public void Run()
        {
            var jobs = new Pubs.Jobs();
            jobs.InitializeWithTestData();

            var uic = new UIController()
            {
                From = jobs,
                View = UITools.GenerateFormWithGridFor("Move To Next Row Demo",
                                                       "Try navigating using tab, while \n"+
                                                       "changing the \"Move To Next Row On Last Column\" check box",
                                                       jobs.Id,
                                                       jobs.Description,
                                                       jobs.MinLevel,
                                                       jobs.MaxLevel)
            };

            var checkBox = new CheckBox
                               {
                                   Text = "Move To Next Row On Last Column",
                                   Width = 200
                               };
            checkBox.CheckedChanged += (a, b) => uic.GoToToNextRowAfterLastControl = checkBox.Checked;

            UITools.AddControlsToForm(uic.View, checkBox);

            uic.Run();
        }
    }
}

See Also