Adding/Deleting Rows in Data Grid messes up positioning
**THE DEETS**: I am trying to build out an email system with inbox, sent, draft, and trash Screens as well as filters for starred and read. I first tried creating one Data Master and giving each email a "status" which I could use to filter. Unfortunately, any sort of filtering or modification of my data grid breaks the styling I use to differentiate between read/unread and starred/unstarred emails (see https://www.justinmind.com/community...).
**MY WORKAROUND:** I decided to make a Data Master for each Screen (inbox, sent, trash, draft) and simply add the row to one data master then delete it from another. For example, when deleting an email from the inbox, I:
1. "Set Value" of var emailSelected to [Row_1] of my Data Grid.
2. create a New row in the Trash Data Master:
NEW ['Subject= 'Select ['emailSelected', 'Subject'], 'EmailBody= 'Select ['emailSelected', 'Body'], ....etc. etc.
3. delete the row from Inbox Data Master:
DELETE[ Filter[ 'Inbox', [ 'EmailID = Select[ 'emailSelected', "EmailID' ] ] ] ]
I can now send emails to the trash from the inbox, and I use the same method to send emails back to the inbox from the trash (restore).
**PROBLEM:** if I trash X number of emails that are not at the bottom of the inbox, any emails subsequently restored to my inbox will appear correct until I click on them and it displays the info from the email that is X above the clicked email in the inbox. Oddly, none of the rows that were originally in the inbox are affected this way, even if they're below the email that is trashed. Same thing happens if done vice versa from trash to inbox.
Please help! Thank you.