Xceed Grid for WinForms v4.3 Documentation
AddRange Method (SelectedRowList)


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Collections Namespace > SelectedRowList Class : AddRange Method
A reference to a Xceed.Grid.Row object representing the row from which the selection begins.
A reference to a Xceed.Grid.Row object representing the row at which the selection ends.
true if the rows that have previously been selected should remain in the selection; false if only the newly selected rows should be selected.
Selects a contiguous range of rows.
Syntax
'Declaration
 
Public Sub AddRange( _
   ByVal startingRow As Row, _
   ByVal endingRow As Row, _
   ByVal keepCurrentSelection As Boolean _
) 
'Usage
 
Dim instance As SelectedRowList
Dim startingRow As Row
Dim endingRow As Row
Dim keepCurrentSelection As Boolean
 
instance.AddRange(startingRow, endingRow, keepCurrentSelection)
public void AddRange( 
   Row startingRow,
   Row endingRow,
   bool keepCurrentSelection
)

Parameters

startingRow
A reference to a Xceed.Grid.Row object representing the row from which the selection begins.
endingRow
A reference to a Xceed.Grid.Row object representing the row at which the selection ends.
keepCurrentSelection
true if the rows that have previously been selected should remain in the selection; false if only the newly selected rows should be selected.
Remarks

Both the starting row and the ending row are included in the selection.

The rows will be ordered in the collection according to the order in which they were added.

The collection will not contain duplicate rows. For example, if DataRows 1, 2 and 3 are added to the selection and then 3, 4 and 5, the collection will contain 1, 2, 3, 4 and 5.

The rows will be added recursively to the collection. Therefore, if a DataRow that contains a Xceed.Grid.DetailGrid is added to the collection, all the rows contained within the DetailGrid will also be added to the collection.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SelectedRowList Class
SelectedRowList Members