My grid is databound to List<Entity>
Edit mode is:
EditMode="PopUp" |
EditForm is template:
<EditFormSettings EditFormType="Template" ... /> |
I want to customize pop-up caption that it will say 'You are editing item {number}'.
I cannot use CaptionFormatString because {number} is not my Entity property. It is just subsequent number and it can be DataItem.ItemIndex as well.
I may set it declaratively or in code-behind but how to extract DataItem.ItemIndex of editing row?