I've just started playing around with the Accordion myself. Tough little bugger to get going isn't it?
I'm pretty sure the Accordion, as with most .Net controls, has a zero-based index. So if you have 5 panes in the accordion their indexes will be 0,1,2,3,4.
To test this, add an event to the accordion that will print out the header text of a pane. Set the index to the number of panes -1 and then see what text appears. If its the text of your last pane, then you know that is it a zero-based index.
I haven't a clue how you could do this personally as I've just had a quick look and it appears the Accordion has no text, rows, columns, item, items properties so how you get your hands on the text of a specific pane is anyone's guess.
Sorry for bumping the thread. I found it in a search and didn't realise what the date was!
Please Mark As Answer if this post helped you.