Recent

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

Jonvy

  • Jr. Member
  • **
  • Posts: 61
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: 462
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

Jonvy

  • Jr. Member
  • **
  • Posts: 61
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