Gets the server-side column index for the specified client-side column index.
Syntax
[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 | Copy Code |
---|---|
<SCRIPT language=javascript> function getHValue() { var ss = document.getElementById("FpSpread1"); var total = ss.GetColKeyFromCol(10); } </SCRIPT> |
See Also
GetRowKeyFromRow | GetColByKey | Scripting Members