Gets or sets the row selector settings.

Namespace: Dapfor.Wpf.Controls
Assembly: Dapfor.Wpf (in Dapfor.Wpf.dll) Version: 4.1.0.26317 (4.1.0.26317)

Syntax

C#
public GridControlRowSelectorSettings SettingsRowSelector { get; set; }
Visual Basic
Public Property SettingsRowSelector As GridControlRowSelectorSettings
	Get
	Set
Visual C++
public:
property GridControlRowSelectorSettings^ SettingsRowSelector {
	GridControlRowSelectorSettings^ get ();
	void set (GridControlRowSelectorSettings^ value);
}
F#
member SettingsRowSelector : GridControlRowSelectorSettings with get, set

Property Value

Type: GridControlRowSelectorSettings
Row selector settings.

Remarks

Row selector is a visual element on the left side of the GridControl that enables a user to manipulate the Rows, change their height, select them.
 Copy imageCopy
public void RowSelectorExample(GridControl 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.AppearanceRowSelectorBackground = Brushes.LightGray;
    grid.AppearanceRowSelectorBorder = Brushes.Gray;
    grid.AppearanceRowSelectorForeground = Brushes.OrangeRed;

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

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

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

See Also