e.dataTransfer.setData to set the index on an ondragstart and read it during the ondrop event.Index instead of a For, this solves the index issue but then the data will be matched with the wrong column.{each:()=>props.headers().map((h,i)=>[h,i])}.