Add Method
Description
Adds a GridRow to the current selection of selected rows.
Syntax
Public Sub Add( _
ByVal Row As GridRow _
)
Parameters
- Row: Reference to the GridRow that will be added to the selection.
Remarks
Adding a GridRow will cause the row to be shaded and the GridRow's selected property is changed to True. Selected rows can be accessed through the GridControl's collection of SelectedRows.
Example
This sample illustrates how to make a Row(s) selected via code using the Add Method.
' This will cause the 2nd and 6th row in the GridControl to become selected.
' The rows will appear shaded (grey) indicating that the rows are selected.
wndGridControl.SelectedRows.Add wndGridControl.Rows(1)
wndGridControl.SelectedRows.Add wndGridControl.Rows(5)
See Also
- GridSelectedRows Collection
- GridRow Selected Property
- GridControl's collection of SelectedRows
- Selecting Rows via code using the Selected Property
- Using the RemoveAt method to remove Selected rows
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.