add:  if (index == this._currentIndex) { var size = this._getRowCount();  if (index < size) { this.setRowIndexSelected(index); } else if (size > 0) { this.setRowIndexSelected(size - 1); } else { this._currentIndex = -1; } } 
context:     removeRow: function(index) {        var content = this._content;            var child = this._lastColumn().childNodes.item(index).tw_child;        if (child != undefined) child.destroy();            for (var i = 0, cnt = this._getColumnCount(); i < cnt; i++) {            var column = content.childNodes.item(i);            column.removeChild(column.childNodes.item(index));                }    },
meta: 5515	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5515/f92e9b34465915b5a9427afe1d7d625eccda8376/GridBox.js/clean/src/thinwire/render/web/resources/GridBox.js