About a move column

I have thought to see the move column of the sample, I will ask you a question.





When I add the row after the column in the grid is replaced



Just like data with which the data of the added row replaced the column



Is there a method of the correct addition?





p.s.: I am sorry that English is not good.

The addRow command place values to the related column based on current state of grid, so if column was moved it will set values based on new column order.
The next feature is not a part of public API, but can be used in your case
Instead of
grid.addRow(id,[1,2,3,4]);
you can use
function correct(data){
return grid._c_order?grid._swapColumns(data):data;
}
grid.addRow(id,correct([1,2,3,4]));