Have you set the HierarchyDefaultExpanded property of the OwnerTableView of the grid? If not try setting it to true, and see if that helps you achieve the desired.
aspx:
Yes i set the HierarchyDefaultExpanded property to true. What i need is to retain the state of expanded item when i rebind my grid but i want to do it only on client side.