Spread ASP.NET 18
Spread for ASP.NET 18 Product Documentation / Client-Side Scripting Reference / Scripting Members / Methods / GetColKeyFromCol
In This Topic
    GetColKeyFromCol
    In This Topic

    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 type="text/javascript">
       function getHValue() {
           var ss = document.getElementById("FpSpread1");
           var total = ss.GetColKeyFromCol(10);
       }
    </script>
    
    See Also