Mike Posted February 27, 2017 Share Posted February 27, 2017 How can I move a row in the same grid (dbgrid and/or stringgrid)? Help is appreciated. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 27, 2017 Share Posted February 27, 2017 Hi, Need to analyze. Best regards. Quote Link to comment Share on other sites More sharing options...
Mike Posted February 27, 2017 Author Share Posted February 27, 2017 Great. Thank you! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 27, 2017 Share Posted February 27, 2017 I think, in any case, you need to additionally create an index field (order),and then analyze UniDBGrid -> OnDropRowsEvent... Quote Link to comment Share on other sites More sharing options...
Mike Posted February 27, 2017 Author Share Posted February 27, 2017 Are there any examples how to realize this? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 27, 2017 Share Posted February 27, 2017 Yes, in progress,i.e. I'm trying to with ClientDataSet (but drag & drop for one row) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 27, 2017 Share Posted February 27, 2017 If this will work,I'll let you know Quote Link to comment Share on other sites More sharing options...
mhmda Posted February 28, 2017 Share Posted February 28, 2017 This may help you: http://forums.unigui.com/index.php?/topic/8047-dbgrid-dragdrop-advanced-tutorial/ Quote Link to comment Share on other sites More sharing options...
Mike Posted February 28, 2017 Author Share Posted February 28, 2017 Thank you. Can your example also be applied to a single dbgrid (or stringgrid)? So move the record in the same grid? Quote Link to comment Share on other sites More sharing options...
mhmda Posted March 1, 2017 Share Posted March 1, 2017 Of course Quote Link to comment Share on other sites More sharing options...
Mike Posted March 1, 2017 Author Share Posted March 1, 2017 Thank you. Will try that solution. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.