TwwDataGrid Drag and Drop to reorder rows (Delphi RAD Studio 10.1 Berlin Firemonkey Multi-Device Application)

104 views
Skip to first unread message

markd...@gmail.com

unread,
Apr 5, 2018, 2:18:28 PM4/5/18
to woll2woll.infopower
I want to reorder rows on a grid using drag and drop methods. I have done
this in other Delphi versions with different grids and I can't seem to find
a simple solution for this in Firemonkey using the TwwDataGrid.

This is a multi part question about dragging and dropping on a TwwDataGrid.

1. Is it possible to set the drag image during TwwDataGrid.OnDragBegin? (like
in a Delphi XE5 for example: TImageList.SetDragImage...)

2. Can I control where the drop is allowed during TwwDataGrid.OnDragOver?

3. Can I get values from the TwwDataGrid based on Sender, Data, and Point
during the TwwDataGrid.OnDragDrop?

a. Can I get data from the row where the drag started?
b. Can I get data from the row that called the TwwDataGrid.OnDragDrop
event?

Does Woll2Woll have any examples demonstrating the functionality described in the questions above? If not can you provide some?

Thank You,
Mark Davich

Dusan Malesevic

unread,
Nov 17, 2022, 8:17:58 PM11/17/22
to woll2woll.infopower
Great question! 
Reply all
Reply to author
Forward
0 new messages