Like the first column here, just whatever the row's number is: +--------+-----------------+ | No. | Names | +--------+-----------------+ | 1 | AAAAAAA | +--------+-----------------+ | 2 | AAAAAAA | +--------+-----------------+ | 3 | AAAAAAA | +--------+-----------------+ | 4 | AAAAAAA | +--------+-----------------+ | 5 | AAAAAAA | +--------+-----------------+ | 6 | AAAAAAA | +--------+-----------------+ | 7 | AAAAAAA | +--------+-----------------+ | 8 | AAAAAAA | +--------+-----------------+
I can't find a way to determine the row number in AbstractColumn.populateItem: columnOne = new AbstractColumn() { public void populateItem(Item cell, String compId, IModel rowModel) { int whatIsMyRowNumber???? cell.add(new Label(compId, whatIsMyRowNumber????); } }; columnTwo = .... -- View this message in context: http://www.nabble.com/DataTable%3A-how-to-make-a-column-showing-the-row-number--tp15660105p15660105.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]