In TableDataView, move resetting selectedCell to enterState to allow exi...

...tState to access it before the state changes.