DeleteAll Method
Description
Removes all rows from the selection. (Un-selects rows, does not delete them)
Syntax
Public Sub DeleteAll()
Remarks
This will not remove delete the rows from the GridControl. It only "Un-selects" the rows from the GridControl's collection of SelectedRows. All rows that were selected and shaded will return to their normal color, and the selected property will be set to False. The row will still remain in the GridControl's view.
Example
This sample illustrates how to un-select all currently selected rows in the GridControl's view.
' This will "un-select" all currently selected rows
wndGridControl.SelectedRows.DeleteAll
See Also
- GridSelectedRows Collection
- GridControl SelectedRows Property
- GridRow Selected Property
- Using the RemoveAt Method to Remove a row
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.