Reordering column views

<< Click to Display Table of Contents >>

Navigation:  Tables >

Reordering column views

Previous pageReturn to chapter overviewNext page

Reordering columns by column drag

Besides reordering columns display as by column selection by SQL, columns in any view may be reordered ad hoc by dragging the column headers, affecting only the displayed DBGrid view and not the dataset behind the scene.

Original table view
PdxEdColumnOrder0

Picking a column header by the mouse
PdxEdColumnOrder1

... and dragged to a new position
PdxEdColumnOrder2

This repositioned column order will also be reflected in export from the current DBGrid view as to delimited CSV text (*.csv), here viewed in MS Excel and in it's associated specifying schema file (*.sch)
PdxEdColumnOrder4Csv PdxEdColumnOrder4CsvSch

as well as in export to the MS Excel file format (*.xls)
PdxEdColumnOrder3Excel

Permanently reordering columns via SQL

To rearrange the column order in the stored table, you will have to run an SQL query with the specified column order and then export the queried table as a new table. As indexes are discarded by this process, you will have to reapply indexes as necessary.
You may analyse the existing table by running a Create SQL CREATE to display the source structure.

__________________________
PdxEditor Application Help, 14 July 2026; © 2010-2026 Niels Knabe