I have a button column in a datagrid. The datagrid is printing out a list of animals. When clicking the button column I would like to get the corresponding animal object.
I found some interesting data that's being sent but this is as a string like: Doggy, Bone, Large, Button.
What I'm looking in this case is to retrieve Doggy as an object not string.
How can I achieve this?
I found some interesting data that's being sent but this is as a string like: Doggy, Bone, Large, Button.
What I'm looking in this case is to retrieve Doggy as an object not string.
How can I achieve this?