[]
Gets a collection of Row objects that are currently selected.
[Browsable(false)]
public RowCollection Selected { get; }
This property is especially useful when the grid's SelectionMode property is set to ListBox.
The code below removes all selected rows from the grid.
Note that foreach loops can't be used to modify the collections being iterated over. This example works because the Selected collection is being enumerated while the Rows collection is being modified.
// delete all selected rows
foreach (Row r in _flex.Rows.Selected)
{
_flex.Rows.Remove(r);
}