Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cut, Copy, Paste in DBGrid1??

Status
Not open for further replies.

cold25

Programmer
Feb 11, 2002
41
US
I just need to know how to cut, copy and paste values held in the individual cells of a DBGrid. I have read about Clipbrd, but this appears to only work w/ things like RichEdit, and not the DBGrid. Any help would be greatly appreciated!

Thanks,
cold25
 
Did you try the standard windows commands like ctrl-c and ctrl-v ? Steven van Els
SAvanEls@cq-link.sr
 
cold25,

The stock grids support copy and pasting, but only when you're editing a cell. Try setting focus on the cell where you want the code, press F2, and then pasting your value. I think you'll find it works as expected.

Hope this helps...

-- Lance
 
Thanks. This was my first time working with the DBGrid and I didn't notice that the cell wasn't actually in "edit" mode. You all were right and I got it working. Thank you very much for your help!

cold25
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top