Jump to content

Merge two rows in UniDbGrid


Recommended Posts

Quote

Please explain this with specific examples.

 

UnidBGrid show list of data that some fields is empty(no entered by user).
I want by drag & drop (for two rows), merge dragged (Source) row data into dropped (Destination) row.

This means after drop, update destination row data by source row data and then delete source row.
Source UnidBGrid  and Destination UnidBGrid  is same.

for example
row id 1 : 
       firstname: name1
       lastname: empty
       ordercount: 10
row id 2 :
       firstname: name1
       lastname: lastname1
       ordercount: 5

resault of DnD:

row id 1:
        firstname: name1
        lastname: lastname1
        ordercount: 15

row id 2 is deleted and not show in UniDbgrid.

 

 

Regards.

  • Like 1
Link to post
Share on other sites
19 hours ago, A.Soltani said:

for example
row id 1 : 
       firstname: name1
       lastname: empty
       ordercount: 10
row id 2 :
       firstname: name1
       lastname: lastname1
       ordercount: 5

resault of DnD:

row id 1:
        firstname: name1
        lastname: lastname1
        ordercount: 15

row id 2 is deleted and not show in UniDbgrid.

Hello,

Well, is not it better to use a grouping in the query?

Link to post
Share on other sites

Hi

 

After merge two row by user, changes must be saved in database.

Next time, when users will open the dataset, will see only one row(result of merge two row).

source row must be deleted from database(and not show in uniDbgrid) and destination row must be updated.

 

Regards.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...