APPS Edit Grid Row Selected Rule

Hi,
Currently i am learning UiPath Apps and stuck with a new issue.
In the Edit grid i need to write a rule when the row is selected.
what i have done is created a variable with type of entity and in the row selected rule i have updated the value as pagename,editgrid.selecteditem
but an error is showing as cannot convert tabularinitclass to that entity type.

Anybody encountered this issue before.
Also tried Newpage.editgrid.selecteditem.id
but id is not a member of Selecteditem
Also attaching the error below

Regards
Sreejith S S

check below