I require some code written in c# .NET 3.5 which is readable to allow a drag and drop of text from a Datagrid. The text will be normal text and any part can be highlighted but only one string of text at any one time will be highlighted and dragged. No multiple drags are allowed.
To process the text the following actions will happen after highlighting text:
1) The user will drag text OR use a shortcut to fill a textbox next to the grid but not in the grid. At the SAME time the KeyID (column0) is AUTOMATICALLY taken from the grid and placed into a second textbox.
2) A process() method is fired when the textbox changes
The system will run online (NOT desktop) and be in 3.5.
Code must be readable and simple. No browser assumptions should be made. The dragged code will remain in the grid. The grid must have page options and allow normal grid functions.
Text example is shown in the attached image. In the example keyid = 2330650880 which will automatically be dragged into the keyid textbox next to the grid and the text = Ignore Everyone and 39 Other Keys To Creativity will be dragged. In the app the user DOES NOT manually handle the keyid and that is done by the code referencing the row in the grid. The text is manually dragged or dragged via shortcut key press. A process() method (empty in delivered code) will fire when textbox changed is detected but allowing time for both boxes to be filled.