Janus GridEx & Rows
-
Anyone have any idea how to implement drag & drop to re-order ROWS (not cols) in GridEx....driving me nuts, cos just can't seem to get it working!!! "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
-
Anyone have any idea how to implement drag & drop to re-order ROWS (not cols) in GridEx....driving me nuts, cos just can't seem to get it working!!! "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
From www.janusys.com support forum Saturday, July 12 2003, 02:29 PM GridEX control does not support automatic drag. To start a drag operation you need to call the OLEDrag method and handle the OLEDrag events to perform such operations. Note: The position of a row is taken from the position of the record in the Recordset and because you can not change that position in a Recordset you won't be able to provide such functionality if the control is bound. Further in the thread is a sample: We don't have samples that change the position of a row using OLE Drag & Drop. Here I'm attaching a sample project that handles the OLEStartDrag and OLESetData events when it is acting as drag source and the OLEDragDrop event for when it is acting as ole drop target. The sample was done to show how to copy rows from one instance of the application to another but with it you can get the idea of what events can be used. I can download and send to you if you need it
-
From www.janusys.com support forum Saturday, July 12 2003, 02:29 PM GridEX control does not support automatic drag. To start a drag operation you need to call the OLEDrag method and handle the OLEDrag events to perform such operations. Note: The position of a row is taken from the position of the record in the Recordset and because you can not change that position in a Recordset you won't be able to provide such functionality if the control is bound. Further in the thread is a sample: We don't have samples that change the position of a row using OLE Drag & Drop. Here I'm attaching a sample project that handles the OLEStartDrag and OLESetData events when it is acting as drag source and the OLEDragDrop event for when it is acting as ole drop target. The sample was done to show how to copy rows from one instance of the application to another but with it you can get the idea of what events can be used. I can download and send to you if you need it
That would be great - or post a link and will fire up the cable modem!! Many thanks "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox