now in another action performed of a button i want to get the selected row number so that i can add 1 to it ..plz tell me the function to retrieve the current row number so that i can add 1 to it and i want that selected row to change to next row wen i click d button as well..
You want changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend)
* toggle: false, extend: false. Clear the previous selection and ensure the new cell is selected.
* toggle: false, extend: true. Extend the previous selection from the anchor to the specified cell, clearing all other selections.
* toggle: true, extend: false. If the specified cell is selected, deselect it. If it is not selected, select it.
* toggle: true, extend: true. Apply the selection state of the anchor to all cells between it and the specified cell.