Board index » delphi » TDBGrid & Drag and Drop

TDBGrid & Drag and Drop

Guys and Gals,

Could someone enlighten me on how to drag and drop from a DBGrid as there is
no OnMouseDown event which would be the usual way (for me that is).

Chris......

 

Re:TDBGrid & Drag and Drop


try it in the OnColEnter event by doing:

DBGrid1.BeginDrag(FALSE,5);

As I have recently found out, this is not to efficient if you have select
row option activated in your TDBGrid.Options.  In this case I would suggest
using a TDBLookupListbox and add all your visualfields to the lookupfields.

If you get a chance, check out some TDBGrid tips on my Delphi Tip of the Day
page at:
http://members.truepath.com/delphi

--
--
Lewis Howell
lewishow...@yahoo.com
Lou's Delphi Tip of the Day:
http://members.truepath.com/delphi
Lou's personal webpage:
http://members.truepath.com/LewisHowell

Quote
Chris Hammond wrote in message <7ef2c0$g3...@flex.london.pipex.net>...
>Guys and Gals,

>Could someone enlighten me on how to drag and drop from a DBGrid as there
is
>no OnMouseDown event which would be the usual way (for me that is).

>Chris......

Other Threads