Gets the settings of a row selector (visual element on the left side of the Grid, which permits to manipulate the Rows, change their height, select them, show related images, etc.).

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public Grid..::..GridRowSelector RowSelector { get; }
Visual Basic
Public ReadOnly Property RowSelector As Grid..::..GridRowSelector
	Get
Visual C++
public:
property Grid..::..GridRowSelector^ RowSelector {
	Grid..::..GridRowSelector^ get ();
}
F#
member RowSelector : Grid..::..GridRowSelector with get

Property Value

Type: Grid..::..GridRowSelector
The row selector settings.

Examples

 Copy imageCopy
public void RowSelectorExample(Grid grid)
{
    //Configure the headers
    grid.Headers.Add(new Header());
    grid.Headers[0].Add(new Column("Price"));
    grid.Headers[0].Add(new Column("Quantity"));

    //Set the appearance of the row selector
    grid.RowSelector.Appearance.BackColor = Color.LightGray;
    grid.RowSelector.Appearance.GradientEnabled = true;
    grid.RowSelector.Appearance.GradientEndBackColor = Color.LightSlateGray;
    grid.RowSelector.Appearance.GradientDirection = GradientDirection.Vertical;

    //Make the selector visible and set its width
    grid.RowSelector.Visible = true;
    grid.RowSelector.Width = 25;

    //Allow the end-user to resize rows
    grid.RowSelector.Resizable = true;

    //Populate the grid
    grid.Rows.Add(new Product());
}

See Also