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

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

    Syntax

    [JavaScript]

    var ret = FpSpread1.GetColByKey(FPKey);

    Parameters

    FPKey
    Integer, index of the server-side column key (Spread control's column index)

    Return Type

    Integer, index of the client-side column

    Remarks

    This method returns the index of the column based on the Spread column key. 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 totalRow = ss.GetColByKey(10);
       }
    </script>
    
    See Also