Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetColKeyFromCol |
Gets the server-side column index for the specified client-side column index.
[JavaScript]
var ret = FpSpread1.GetColKeyFromCol(Column);
Integer, index of the server-side column key
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.
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> |