• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

DBGrid: Deleting multiple records at once....

I have a DBGrid connected to a table and I'd like to be able to delete all records that are selected instead of one by one, how can I do this?
0
dokken
Asked:
dokken
  • 2
1 Solution
 
intheCommented:
Hi
Delphi supports MultiSelect attribute in the TDBGrid. Just enable it. Then you can use Selected.Delete to delete the selected records etc ..
(dbgrid1.SelectedRows.Delete)

Regards Barry
0
 
dokkenAuthor Commented:
Barry,
 
Thanks.  I don't know how I missed that one.
0
 
intheCommented:
;-)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now