# GetColKeyFromCol

Use the GetColKeyFromCol method to get the server-side column index for the specified client-side column index. Learn its syntax and parameters in the documentation.

## Content

Gets the server-side column index for the specified client-side column index.

## Syntax

[JavaScript]

```javascript
var ret = FpSpread1.GetColKeyFromCol(Column);
```

## Parameters

***Column***
Integer, client-side column index

## Return Type

Integer, index of the server-side column key

## Remarks

This method returns the index of the Spread key (FPKey) based on the column. You may have more than one table of columns if you have frozen columns. The Spread column key is unique for each column.

## 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 getHValue() {
       var ss = document.getElementById("FpSpread1");
       var total = ss.GetColKeyFromCol(10);
   }
</script>
```

## See Also

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