[Fix #7858] Toggle editing mode resets edit widget
And introduces full mapping between table row and field index ( Fix for loosing index mapping after sorting rows )