[!Note] Please note that this control has been deprecated and replaced with the Grid component, and as such, we recommend migrating to that control. This will not be receiving any new features, bug fixes will be deprioritized. For help or questions on migrating your codebase to the Data Grid, please contact support.

    Blazor Grid Column Moving Overview

    The Ignite UI for Blazor Data Grid supports the ability to move columns, giving you the flexibility over how you wish to display your columns with respect to the order of the columns shown.

    Blazor Grid Column Moving Example

    Column moving in the Ignite UI for Blazor Data Grid is on by default, and can be controlled by setting the ColumnMovingMode property of the grid. This property has two options, Deferred or None. Deferred will allow column moving, while None will disable column moving for the entire grid.

    When column moving is set to Deferred, a separator will show up while moving a column. While moving a column, once the mouse pointer is released, the moved column will take the place of the column placed to the right of the separator. This separator can also be customized in width and color by using the ColumnMovingSeparatorWidth and ColumnMovingSeparatorBackground properties, respectively.

    You can also animate the column movements, if you wish. This can be done by setting the ColumnMovingAnimationMode property of the grid. Animations are not on by default.

    Code Snippet

    The following demonstrates how to implement column moving in the Ignite UI for Blazor Data Grid with deferred column moving, animations enabled, and a 5px wide separator:

    <IgbDataGrid Height="100%" Width="100%"
        DataSource="DataSource"
        ColumnMovingMode="ColumnMovingMode.Deferred"
        ColumnMovingAnimationMode="ColumnMovingAnimationMode.SlideOver"
        ColumnMovingSeparatorWidth="5" />
    

    API References