## GridCells.CopyColumns method

Copies data and formattings of a whole column.

```csharp
public void CopyColumns(GridCells sourceCells, int sourceColumnIndex, int destinationColumnIndex, 
    int columnNumber)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sourceCells | GridCells | Source Cells object contains data and formattings to copy. |
| sourceColumnIndex | Int32 | Source column index. |
| destinationColumnIndex | Int32 | Destination column index. |
| columnNumber | Int32 | The copied column number. |

### See Also

* class [GridCells](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)


