public/javascripts/yui/datatable/datatable.js
function() {
    // Keep track of selected rows
    var allSelectedRows = this.getSelectedRows();
    // Keep track of selected cells
    var allSelectedCells = this.getSelectedCells();
    // Anything to select?
    if((allSelectedRows.length>0) || (allSelectedCells.length > 0)) {
        var oColumnSet = this._oColumnSet,
            el;
        // Loop over each row
        for(var i=0; i<allSelectedRows.length; i++) {
            el = Dom.get(allSelectedRows[i]);
            if(el) {
                Dom.addClass(el, DT.CLASS_SELECTED);
            }
        }
        // Loop over each cell
        for(i=0; i<allSelectedCells.length; i++) {
            el = Dom.get(allSelectedCells[i].recordId);
            if(el) {
                Dom.addClass(el.childNodes[oColumnSet.getColumn(allSelectedCells[i].columnKey).getKeyIndex()], DT.CLASS_SELECTED);
            }
        }
    }       
}
function() {
    // Keep track of selected rows
    var allSelectedRows = this.getSelectedRows();
    // Keep track of selected cells
    var allSelectedCells = this.getSelectedCells();
    // Anything to select?
    if((allSelectedRows.length>0) || (allSelectedCells.length > 0)) {
        var oColumnSet = this._oColumnSet,
            el;
        // Loop over each row
        for(var i=0; i<allSelectedRows.length; i++) {
            el = Dom.get(allSelectedRows[i]);
            if(el) {
                Dom.addClass(el, DT.CLASS_SELECTED);
            }
        }
        // Loop over each cell
        for(i=0; i<allSelectedCells.length; i++) {
            el = Dom.get(allSelectedCells[i].recordId);
            if(el) {
                Dom.addClass(el.childNodes[oColumnSet.getColumn(allSelectedCells[i].columnKey).getKeyIndex()], DT.CLASS_SELECTED);
            }
        }
    }       
}
function ( ) { // Keep track of selected rows var allSelectedRows = this . getSelectedRows ( ) ; // Keep track of selected cells var allSelectedCells = this . getSelectedCells ( ) ; // Anything to select? if ( ( allSelectedRows . length > 0 ) || ( allSelectedCells . length > 0 ) ) { var oColumnSet = this . _oColumnSet , el ; // Loop over each row for ( var i = 0 ; i < allSelectedRows . length ; i ++ ) { el = Dom . get ( allSelectedRows [ i ] ) ; if ( el ) { Dom . addClass ( el , DT . CLASS_SELECTED ) ; } } // Loop over each cell for ( i = 0 ; i < allSelectedCells . length ; i ++ ) { el = Dom . get ( allSelectedCells [ i ] . recordId ) ; if ( el ) { Dom . addClass ( el . childNodes [ oColumnSet . getColumn ( allSelectedCells [ i ] . columnKey ) . getKeyIndex ( ) ] , DT . CLASS_SELECTED ) ; } } } }
Assigns the class DT.CLASS_SELECTED to TR and TD elements.

@method _setSelections
@private
Assigns the class DT . CLASS_SELECTED to TR and TD elements .