# Columns

Use the Columns method to represent a column on the client side and to set or return the width of a column. Learn its syntax and parameters in the documentation.

## Content

Represents a column on the client side and can be used to set or return the width of a column.

## Syntax

[JavaScript]

```javascript
FpSpread1.Columns(c);
```

## Parameters

***column***
Integer, column index

## Return Type

None

## Remarks

This method can be used to set the width in pixels.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
  function setWidth() {
    FpSpread1.Columns(3) = 10; // sets the size
  }
</script>
```

## See Also

[SetColWidth](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-setColWidth)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)