code: function(row) {
      var nTrIndex;
  
      if(!lang.isNumber(row)) {
          // By Record
          if(row instanceof YAHOO.widget.Record) {
              return this._oRecordSet.getRecordIndex(row);
          }
          // By element reference
          else {
              // Find the TR element
              var el = this.getTrEl(row);
              if(el) {
                  nTrIndex = el.sectionRowIndex;
              }
          }
      }
      // By page row index
      else {
          nTrIndex = row;
      }
  
      if(lang.isNumber(nTrIndex)) {
          var oPaginator = this.get("paginator");
          if(oPaginator) {
              return oPaginator.get('recordOffset') + nTrIndex;
          }
          else {
              return nTrIndex;
          }
      }
  
      return null;
  }
docs: RECORDSET FUNCTIONS 
  Returns Record index for given TR element or page row index.
  
  @method getRecordIndex
  @param row {YAHOO.widget.Record | HTMLElement | Number} Record instance, TR
  element reference or page row index.
  @return {Number} Record's RecordSet index, or null.