Jsgrid Javascript Grid Framework

getrows method

The method getrows returns an array of grid cells of selected columns. The arguments are the index numbers of the selected columns.

Syntax

var pggrid = new jsgrid(); 
        pggrid.init({ 
        id:"wrp", 
        rows:5, 
        columns:12, 
        width:25, 
        height:20, 
        gutter:1,
        backgroundColor: "#7fffd4" 
        }); 
        var cols = pggrid.getcolumns(0,2,4,6,8,10); 
        pggrid.setbackgroundcolor(cols,"#bbff00");

Grid View