src/sap.ui.table/src/sap/ui/table/TableSyncExtension.js
function(iIndex, bSelected) {
			var oTable = this.getTable();
			var oRow = oTable.getRows()[iIndex];

			if (oRow && bSelected != null) {
				TableUtils.toggleRowSelection(oTable, oRow.getIndex(), bSelected);
			}
		}
function(iIndex, bSelected) {
			var oTable = this.getTable();
			var oRow = oTable.getRows()[iIndex];

			if (oRow && bSelected != null) {
				TableUtils.toggleRowSelection(oTable, oRow.getIndex(), bSelected);
			}
		}
function ( iIndex , bSelected ) { var oTable = this . getTable ( ) ; var oRow = oTable . getRows ( ) [ iIndex ] ; if ( oRow && bSelected != null ) { TableUtils . toggleRowSelection ( oTable , oRow . getIndex ( ) , bSelected ) ; } }
Sets the selection state of a row.

@param {int} iIndex The index of the row in the aggregation.
@param {boolean} bSelected Whether the row should be selected.
Sets the selection state of a row .