|Re: Selecting specific row by row number [message #1397902 is a reply to message #1397877]
||Thu, 10 July 2014 10:17
| Dirk Fauth
Registered: July 2012
A coordinate in NatTable is a combination of layer and position. Your example will create the coordinate for NatTable row position 2. As you have a viewport, the position is related to the current scrolling position.|
natTable.doCommand(new SelectRowsCommand(dataLayer, 0, rowNumber, false, false));
which will use a DataLayer coordinate.
If that doesn't work, try
selectionLayer.doCommand(new SelectRowsCommand(selectionLayer, 0, rowNumber, false, false));
Although from my understanding the first one should work.
Powered by FUDForum
. Page generated in 0.12885 seconds