# ColumnReorderedEventArgs

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Provides data for the [ColumnReordered](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#columnreordered) event.

{% tabs %}
{% tab title="C#" %}

```csharp
public class ColumnReorderedEventArgs : CancelEventArgs
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class ColumnReorderedEventArgs
    Inherits CancelEventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnReorderedEventArgs(oldDisplayIndex, newDisplayIndex, header)

Initializes a new instance of the [ColumnReorderedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnreorderedeventargs) class.

| Name                | Type                                                                                                 | Description                                                                                                                                |
| ------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **oldDisplayIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                          | The previous display position of the [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader). |
| **newDisplayIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                          | The new display position for the [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader).     |
| **header**          | [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader) | The [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader) that is being reordered.          |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Header

[ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader): Returns the [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader) that is being reordered.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) NewDisplayIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the new display position of the [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) OldDisplayIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the previous display position of the [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader).

## Used By

| Name                                                                                                                               | Description                                                                                                                                                                                                                                    |
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ColumnReorderedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnreorderedeventhandler) | Represents the method that will handle the [ColumnReordered](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/..#columnreordered) event of the [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview) control. |
