Drag and drop objects within the grid

I want to to drag and drop elements of the table within the border of the table only when touched it ,and make a condition to prevent placed outside table just from cell to cell within table

Please support

Do you have any code to show what you’ve done and how, as well as to better elaborate your issue?

Do you have any code to show what you’ve done and how, as well as to better elaborate your issue?