grid.getSelectionModel().selectFirstRow();//定位到第一行 grid.getSelectionModel().selectLastRow() ;//定位到最后一行 grid.getView().focusRow(i);//定位到指定行