Column reorder

GridControl

Let users drag columns into the order they work in.

Overview

Column reordering lets users of a Blazor GridControl drag a header sideways and drop the column where they want it. Use it on work lists where each person reads the columns in a different order; it is on by default, and every move raises OnLayoutChanged with the new ColumnOrder. Set PersistenceKey and register an IGridSettingsStore, and the grid saves the order and loads it again next time.

Examples

#Move columns by dragging headers

Drag Priority in front of Booking, or Agent to the right of Cost; sorting, filtering and search keep working on the new order.

Booking Destination Desk Task Agent Priority Hours Cost Due
BK-1100LisbonReservationsConfirm hotel rooming listBasil CrabappleHigh6.5$845.501/8/2026
BK-1100LisbonTicketingReissue changed e-ticketsPoppy GingersnapHigh4.0$620.001/9/2026
BK-1180AmalfiGroundRebook coast road transferJasper HollyhockMedium3.0$410.251/10/2026
BK-1250KyotoDocumentsSend rail pass vouchersMabel CandlewickLow2.5$275.001/11/2026
BK-1310Cape TownReservationsHold winery lunch tableFelix ToadflaxMedium1.5$190.001/12/2026
BK-1310Cape TownCustomer careCall the lead travelerEsme BiscuitHigh5.0$700.001/13/2026
BK-1460ReykjavikGroundConfirm glacier walk guideOtto MossgroveMedium3.5$535.751/14/2026
BK-1460ReykjavikDocumentsIssue final itineraryWren PeriwinkleLow2.0$260.001/15/2026
BK-1520QueenstownTicketingRequest long-haul seatsCrispin WafflestoneHigh4.5$655.401/16/2026
BK-1520QueenstownAccountsChase balance paymentDahlia HedgerowMedium2.0$285.301/17/2026
BK-1610MarrakechGroundNote riad late check-inFlorian PumpernickelLow1.0$140.001/18/2026
BK-1610MarrakechCustomer carePost-trip feedback callAgatha LamplighterMedium2.8$360.001/19/2026

Drop a header to see the new order here.

Documentation

ParameterTypeDefaultDescription
AllowColumnReorderbooltrueLets a header be dragged onto another header. When off, headers stay draggable only for grouping (with AllowGrouping on) and a drop on a header does nothing.
ColumnReorderPipeColorstring"#2b2b2b"Color of the vertical pipe that marks where the column will land; any CSS color, written to the grid's --fx-grid-reorder-pipe-color variable. Blank falls back to the default.
OnLayoutChangedEventCallback<GridSettings>—Fires after a layout change the grid can persist: a header drop, the end of a column or row resize, fit-to-grid and auto-fit, a group added or removed, the header menu's rename, lock and hide commands, a column shown or hidden from the options panel, and OK in the Choose Columns dialog. The argument is a GridSettings snapshot of the whole layout, not just the part that changed; save it to restore the layout later.
PersistenceKeystring?nullOpt-in persistence. When set and an IGridSettingsStore is registered in DI, the grid loads the saved snapshot once it has its columns and saves a new one at every change that raises OnLayoutChanged.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.