A visual element on the left side of the Grid that enables a user to manipulate the Rows, change their height, select them, show related images (error icons for example).

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

Syntax

C#
[TypeConverterAttribute("Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")]
public sealed class GridRowSelector
Visual Basic
<TypeConverterAttribute("Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")>
Public NotInheritable Class GridRowSelector
Visual C++
[TypeConverterAttribute(L"Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")]
public ref class GridRowSelector sealed
F#
[<SealedAttribute>]
[<TypeConverterAttribute("Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")>]
type GridRowSelector =  class end

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());
}

Inheritance Hierarchy

System..::..Object
  Dapfor.Net.Ui..::..Grid..::..GridRowSelector

Thread Safety

The class is not thread safe.

See Also