Vcl.DBGrids.TBookmarkList.Clear

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Clear;           // free all bookmarks

C++

void __fastcall Clear();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TBookmarkList

Description

Deletes all bookmarks from the list.

Call Clear to empty the Items array and set the Count property to 0 when all rows of the associated DBGrid are deselected. Calling Clear invalidates the associated DBGrid so that the selected rows that were referenced by the bookmarks in the bookmark list can be repainted.

Note: Clear removes the bookmarks from the bookmark list to reflect the fact that the corresponding rows are not selected. To delete the rows from the dataset rather than just deselecting them, call the Delete method instead.

See Also