0

I have a TDbGrid with some records. I want to drag an drop multiple records to a listbox on simple drag and drop. but after selecting the multiple records when i click on the selected records of grid for dragging, all selected records are become deselect except the current record. How can fix this issue?

TLama
  • 75,147
  • 17
  • 214
  • 392
Udhayakumar M
  • 51
  • 1
  • 3
  • The default dbgrid behaviour does not support this. To make it works, You need to keep pressing ctrl button while you multi select records, drag and drop to listbox. Have a look at TCustomDBGrid.mouseDown event. – Hendra Sep 04 '12 at 12:19
  • If you make changes so the grid behaves like what you want, the only way to deselect the selected row/rows is by clicking on not-selected rows. If the user multi select all the rows, there is no way to deselect them (all the rows already selected) by mouse. – Hendra Sep 04 '12 at 12:27
  • http://stackoverflow.com/questions/16796669/how-do-i-drag-and-drop-from-a-tdbgrid – RobertFrank Nov 08 '13 at 17:47

0 Answers0