Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensured that the selected sheet in the Data View is maintained after reordering #8007

Merged
merged 9 commits into from
Dec 11, 2022

Conversation

N-thony
Copy link
Collaborator

@N-thony N-thony commented Dec 6, 2022

Fixes #7550
@rdstern as discussed I have improved the code and also fixed the small bug in the Data View to maintain the selected sheet even though reordering is applied. Please, take a look. Thanks.

rdstern
rdstern previously approved these changes Dec 6, 2022
Copy link
Collaborator

@rdstern rdstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@N-thony I am really pleased you have returned to this issue, because sorting out the reordering of the data frames was one of the last of these operations that seems now to be working.
It seems to be fine, so if @lloyddewit is ok, then I would be happy to merge it.
I am not sure the title of the pull request is totally appropriate though? When I tried, the sheets were reordered as I had wished, and the last sheet always became the active sheet. That's fine by me, but it isn't what I think of as "maintaining the selected sheet".

@N-thony
Copy link
Collaborator Author

N-thony commented Dec 6, 2022

@N-thony I am really pleased you have returned to this issue, because sorting out the reordering of the data frames was one of the last of these operations that seems now to be working. It seems to be fine, so if @lloyddewit is ok, then I would be happy to merge it. I am not sure the title of the pull request is totally appropriate though? When I tried, the sheets were reordered as I had wished, and the last sheet always became the active sheet. That's fine by me, but it isn't what I think of as "maintaining the selected sheet".

@rdstern sounds good, it works fine on my side, I have sent some screenshots on Skype

Copy link
Contributor

@lloyddewit lloyddewit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@N-thony Thanks, looks good, just a few open questions.

@@ -71,7 +71,7 @@ Public MustInherit Class ucrReoGrid
Return New clsWorksheetAdapter(fillWorkSheet)
End Function

Private Sub ReOrderWorksheets() Implements IGrid.ReOrderWorksheets
Private Sub ReOrderWorksheets(strCurrWorksheet As String) Implements IGrid.ReOrderWorksheets
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you add a summary header (see comment below)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lloyddewit this is done

@N-thony
Copy link
Collaborator Author

N-thony commented Dec 6, 2022

@lloyddewit I have made the changes, please take a look. Thanks.

rdstern
rdstern previously approved these changes Dec 7, 2022
Copy link
Collaborator

@rdstern rdstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@N-thony seems to work fine now!

@lloyddewit
Copy link
Contributor

@N-thony Thank you for the changes. There is just one open comment above. If you can add the summary header, then we can merge, thanks

Copy link
Contributor

@lloyddewit lloyddewit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@N-thony Thank you for the final changes.
The new header is the same as the sub name, so it doesn't add any value.
I was hoping that the header would explain more about the what the sub does. However, I looked through the subs again and with the new code comments you added, it's easier for a developer to understand what's happening. So I'm happy to approve/merge.

@lloyddewit lloyddewit changed the title Maintaining the selected sheet in the Data View after reordering Ensured that the selected sheet in the Data View is maintained after reordering Dec 11, 2022
@lloyddewit lloyddewit merged commit 50fb40f into IDEMSInternational:master Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor improvement on reordering of data frame tabs in Data View
3 participants