I am using Component one flex grid in my C# application form. I need to add drag drop functionality in the grid. My grid row has folder names which contains files name. My files are stored in SQL Server 2008 database.
Expected behavior
-If grid row is dragged inside grid then row should move up down, i.e Item is moved in different folders.
-If row is dragged outside grid then, if the location is pointing to explorer then files should be exported to the folder,
-If to email draft then it should be attached as a attachment,
-If dragged to supported editor then it should open.
Example Grid
File types can be word document, PPT, Excel, Text file.
-Folder 1
-----File 1
-----File 2
-----File 3
-Folder 2
-----File 4
Problems:
- How to differentiate between Drop is inside or outside the grid.
- At what moment I should fetch file from DB, as file size can differ?
- Is there any possibility to open a new form with some Export details, where user can select export parameters if file is dropped to Outlook or explorer?
What could be the best approach to achieve the requirement?
What I have tried:
I have tried following:
- loading a file from local system and drop using - new DataObject(DataFormats.FileDrop, fileList) is Mouse_move event, but could not differentiate between drop cursor position.