public/javascripts/yui/datatable/datatable.js
function(cell) {
    var elCell = this.getTdEl(cell);
    if(elCell) {
        var nThisTdIndex = elCell.cellIndex;
        var elRow = this.getTrEl(elCell);
        if(nThisTdIndex < elRow.cells.length-1) {
            return elRow.cells[nThisTdIndex+1];
        }
        else {
            var elNextRow = this.getNextTrEl(elRow);
            if(elNextRow) {
                return elNextRow.cells[0];
            }
        }
    }
    return null;
}
function(cell) {
    var elCell = this.getTdEl(cell);
    if(elCell) {
        var nThisTdIndex = elCell.cellIndex;
        var elRow = this.getTrEl(elCell);
        if(nThisTdIndex < elRow.cells.length-1) {
            return elRow.cells[nThisTdIndex+1];
        }
        else {
            var elNextRow = this.getNextTrEl(elRow);
            if(elNextRow) {
                return elNextRow.cells[0];
            }
        }
    }
    return null;
}
function ( cell ) { var elCell = this . getTdEl ( cell ) ; if ( elCell ) { var nThisTdIndex = elCell . cellIndex ; var elRow = this . getTrEl ( elCell ) ; if ( nThisTdIndex < elRow . cells . length - 1 ) { return elRow . cells [ nThisTdIndex + 1 ] ; } else { var elNextRow = this . getNextTrEl ( elRow ) ; if ( elNextRow ) { return elNextRow . cells [ 0 ] ; } } } return null ; }
Returns DOM reference to the next TD element from the given cell, or null.

@method getNextTdEl
@param cell {HTMLElement | String | Object} DOM element reference or string ID, or
object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element.
@return {HTMLElement} Reference to next TD element, or null.
Returns DOM reference to the next TD element from the given cell or null .