ComponentOne True DBGrid Pro 8
Deleting a record

True DBGrid's AllowDelete property must be True in order for the user to delete records through the grid. The default value is False.

To delete a record, the user selects the row to be deleted by clicking its record selector, then pressing the Del key. Only one record can be deleted at a time. The user cannot select multiple records and press the Del key to delete them all.

Note: In order for the record to be deleted, the grid must have focus so it can receive the Del key. Clicking the grid's record selector column does not set focus to the grid. However, if you always want the grid to receive focus when the user clicks the record selector column, set focus to the grid in the grid's SelChange event:

Example Title
Copy Code
Private Sub TDBGrid1_SelChange(Cancel As Integer)

    TDBGrid1.SetFocus

End Sub

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback