Recent

Author Topic: <SOLVED>How to select copy all data or column data from DBGrid?  (Read 291 times)

Jonvy

  • New Member
  • *
  • Posts: 38
Dear all,
From the DBGrid, I want to get two funcftions:
1.click point 1(see attachment), then mark all data and copy to clipboard.
2.click point 2, get this column's data and copy to clipboard.
Just get the similar function as Excel.

Can anyone give me some ideas how to do it?
Thanks!

Best regards,
Jonvy
Modify message
« Last Edit: July 01, 2022, 03:58:36 am by Jonvy »

paweld

  • Sr. Member
  • ****
  • Posts: 404
Re: How to select copy all data or column data from DBGrid?
« Reply #1 on: June 30, 2022, 02:24:15 pm »
Sample in attachment
Best regards
paweld
---
Lazarus trunk / FPC stable

Jonvy

  • New Member
  • *
  • Posts: 38
Re: How to select copy all data or column data from DBGrid?
« Reply #2 on: July 01, 2022, 03:06:36 am »
Sample in attachment

Thanks Paweld, your code solves the problem!

 

TinyPortal © 2005-2018