Board index » delphi » Drag&Drop from TDBGrid

Drag&Drop from TDBGrid

How to Drag from a TDBGrid. If I set the dragmode to dmautomatic I can't
select any row anymore (it starts dragging). The target is a TTreeview. Any
examples of dmmanual mode would be welcome. How do I respond to the events?

Thanks,
 Marko.

 

Re:Drag&Drop from TDBGrid


Perhaps it can help you (from the Delphi TI):

Article #16562: An example of drag and drop between DBGrids

MfG
;-]

"Mark" <n...@none.com> schrieb im Newsbeitrag news:3b8a1955_1@dnews...

Quote
> How to Drag from a TDBGrid. If I set the dragmode to dmautomatic I can't
> select any row anymore (it starts dragging). The target is a TTreeview.
Any
> examples of dmmanual mode would be welcome. How do I respond to the
events?

> Thanks,
>  Marko.

Re:Drag&Drop from TDBGrid


I've checked the article, but anything I try doesn't start the dragging
while in dmmanual mode. Does anyone have any examples what to put in those
event handlers (especially onstartdrag)?

Thanks,
                Marko.

"Caroll Ferkl" <Caroll.Fe...@ntv.de> je napisal v sporoilo
news:3b8a23ec_2@dnews ...

Quote
> Perhaps it can help you (from the Delphi TI):

> Article #16562: An example of drag and drop between DBGrids

> MfG
> ;-]

> "Mark" <n...@none.com> schrieb im Newsbeitrag news:3b8a1955_1@dnews...
> > How to Drag from a TDBGrid. If I set the dragmode to dmautomatic I can't
> > select any row anymore (it starts dragging). The target is a TTreeview.
> Any
> > examples of dmmanual mode would be welcome. How do I respond to the
> events?

> > Thanks,
> >  Marko.

Re:Drag&Drop from TDBGrid


Hallo Marko,

I've had similar problems with D&D with DBGrid, but I can't remember if it
was EXACTLY the same problem. I Didn't find a solution for the problem.
Then I used TRxDBGrid and everything worked as it should work.

Greetings to you.

Dietmar.

Quote
> > "Mark" <n...@none.com> schrieb im Newsbeitrag news:3b8a1955_1@dnews...
> > > How to Drag from a TDBGrid. If I set the dragmode to dmautomatic I
can't
> > > select any row anymore (it starts dragging). The target is a
TTreeview.
> > Any
> > > examples of dmmanual mode would be welcome. How do I respond to the
> > events?

> > > Thanks,
> > >  Marko.

Re:Drag&Drop from TDBGrid


Even if I set the dragimmediate to false and increase the dragthreshold
properties the dbgrid acts the same. I certainly would expect that every
click on a dbgrid starts the dragging process. Dbgrid becomes completely
useless. I would consider this a bug, but I don't know anything about
responding to events. Maybe something should be filled in there to delay the
dragging process.

Thanks,
            Marko.

"Dietmar Mysliwietz" <dmysliwi...@maerkischer-kreis.de> je napisal v
sporocilo news:3b8b44fe$1_2@dnews ...

Quote
> Hallo Marko,

> I've had similar problems with D&D with DBGrid, but I can't remember if it
> was EXACTLY the same problem. I Didn't find a solution for the problem.
> Then I used TRxDBGrid and everything worked as it should work.

> Greetings to you.

> Dietmar.

> > > "Mark" <n...@none.com> schrieb im Newsbeitrag news:3b8a1955_1@dnews...
> > > > How to Drag from a TDBGrid. If I set the dragmode to dmautomatic I
> can't
> > > > select any row anymore (it starts dragging). The target is a
> TTreeview.
> > > Any
> > > > examples of dmmanual mode would be welcome. How do I respond to the
> > > events?

> > > > Thanks,
> > > >  Marko.

Other Threads