eclipse-nattable / nattable

High performance SWT data grid
https://eclipse.dev/nattable/
Eclipse Public License 2.0
11 stars 6 forks source link

[Reorder] Provide example on real row reorder #61

Closed fipro78 closed 4 months ago

fipro78 commented 4 months ago

The RowReorderLayer is used to support a visual row reordering. This means that there is a layer transformation, so it looks like the rows are reordered by a user, but the data structure does not change.

In some scenarios it might be required that a reorder operation really changes the underlying data structure. This can be achieved by not using the RowReorderLayer and create and register command handler on the DataLayer that perform the reordering on the data structure.

It would be nice to have an example showing how to do this.