Vcl.DBCtrls.TDBNavigator.VisibleButtons
Delphi
property VisibleButtons: TNavButtonSet read FVisibleButtons write SetVisible
C++
__property TNavButtonSet VisibleButtons = {read=FVisibleButtons, write=SetVisible, default=1023};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBNavigator |
Description
Determines the buttons that appear on the database navigator.
Use VisibleButtons to select the buttons that will appear on the navigator. Leave any of the navigator buttons out of the VisibleButtons set to hide those buttons and thereby prevent the user from performing certain operations. For example, to only allow the user to view the records in the dataset, VisibleButtons should include only the nbFirst, nbPrior, nbNext, and nbLast.
VisibleButtons can take one or more of the following values:
Value | Button | Purpose |
---|---|---|
nbFirst |
First |
Sets the current record to the first record in the dataset, disables the First and Prior buttons, and enables the Next and last buttons if they are disabled. |
nbPrior |
Prior |
Sets the current record to the previous record and enables the Last and Next buttons if they are disabled. |
nbNext |
Next |
Sets the current record to the next record and enables the First and Prior buttons if they are disabled. |
nbLast |
Last |
Sets the current record to the last record in the dataset, disables the Last and Next buttons, and enables the First and Prior buttons if they are disabled. |
nbInsert |
Insert |
Inserts a new record before the current record and sets the dataset into Insert and Edit states. |
nbDelete |
Delete |
Deletes the current record and makes the next record the current record. |
nbEdit |
Edit |
Puts the dataset into Edit state so that the current record can be modified. |
nbPost |
Post |
Writes changes in the current record to the database. |
nbCancel |
Cancel |
Cancels edits to the current record, restores the record display to its condition prior to editing, and turns off Insert and Edit states if they are active. |
nbRefresh |
Refresh |
Refreshes the buffered data in the associated dataset. |
nbApplyUpdates |
ApplyUpdates |
Writes changes for all the changed records (inserted, deleted or edited) to the database. |
nbCancelUpdates |
CancelUpdates |
Cancels edits for all edited records, restores the record display to its condition prior to editing, and turns off Insert and Edit. |
Note: To use ApplyUpdates and CancelUpdates you must enable them by changing the VisibleButtons property from Object Inspector pane.