TableView: How to return from detail by code?

Hello,


I was trying to reset (go from DetailView back to the normal view) a Tableview tby using

if tv.isDetailMode then tv.HideDetailView.

HideDetailView is described on p. 35 of the doc, but XE7 tells me that it does not exists. I cannot find it in the source either.

Could you kindly direct me to the correct solution?

Kind regards
Gernot

Hi, 


HideDetailview is at item level, So you need to pop the detailview of the item that has been pushed.

Kind Regards, 
Pieter

Thanks Pieter,


is there a possibility how to find the "pop"ped item when coming to the tableview from a different page and to initiate the push via code?

Kind regards
gernot

Hi, 


If you click on an item, you can use the SelectedItem property. If you programmatically show the view for another item you will need to keep a reference to the item that has been pushed.

Each item can call HideDetailView and ShowDetailView and with the IsDetailMode you can verify if the TableView is in detail mode.

Kind Regards, 
Pieter

Kind Regards, 
Pieter