These seems like it should be simple, but for some reason I can not figure out how to do it. I am handling the ItemCommand event of a hierachial self-referening grid.
I simply need to get the key of the item where the add new record button was clicked.
For example
Item 1
Add new Record
Sub Item 1
Add new Record
Item 3
Add new record
Sub Item 2
Add New Record
If I click on the Add new record button under Item 1, I need to get the key/value of Item 1.
If I click on Add new record under Sub Item 1, I need to get the key/value for Sub Item 1.
Seems like a simple thing, but I can't seem to get it.
I simply need to get the key of the item where the add new record button was clicked.
For example
Item 1
Add new Record
Sub Item 1
Add new Record
Item 3
Add new record
Sub Item 2
Add New Record
If I click on the Add new record button under Item 1, I need to get the key/value of Item 1.
If I click on Add new record under Sub Item 1, I need to get the key/value for Sub Item 1.
Seems like a simple thing, but I can't seem to get it.