Hi,
I have a treectrl as shown below

- Root1
|
----- - A
| |
| ----- A1
|
----- B
|
----- C
+ Root2
+ Root3

Here there are three levels.
1. Root level ( Root1, Root2 and Root3)
2. Child first level( A, B and C) and
3. Child second level( A1)

My requirement is, when I am selecting I wantto get the index of that item in its level.
For eg: If I select Root2 or B, I want to get the index as 2
If I select Root1 or A1, I want to get the index as 1

If u have any idea pls help

Ajay