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

Error window popup when removing a TabPage containing a DataGridView in DemoConsole application #12889

Open
Syareel-Sukeri opened this issue Feb 6, 2025 · 2 comments
Assignees

Comments

@Syareel-Sukeri
Copy link
Contributor

.NET version

main branch of WinForms repo

Did it work in .NET Framework?

Not tested/verified

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Reproduced on the release/9.0 branch.

Issue description

When a TabPage containing a DataGridView is removed from a TabControl in the WinForms designer, an error message appears stating: Error invoking 'Remove Tab'. Details: Designer is not initialized

DGVinTabPage.mp4

Steps to reproduce

  1. Open the test sample: DemoConsole in Winforms repo.
  2. Switch to the TabControl and TableLayoutPanel tabpage and drag the DataGridView control in the lower right corner onto one of the TabPage .
  3. Attempt to remove the TabPage by opening the smart tag and click "Remove Tab".

More Info:

  1. The issue cannot be reproduced with any other controls in TabControl and TableLayoutPanel tabpage
@Syareel-Sukeri Syareel-Sukeri added area-DesignerSupport untriaged The team needs to look at this issue in the next triage labels Feb 6, 2025
@merriemcgaw
Copy link
Member

@Syareel-Sukeri - does this also occur when you remove the offending tab by using the CollectionEditor?
@LeafShi1 can your team investigate what might be causing this?

@merriemcgaw merriemcgaw removed the untriaged The team needs to look at this issue in the next triage label Feb 6, 2025
@Syareel-Sukeri
Copy link
Contributor Author

@merriemcgaw Yes, the issue still reproduces when removing the TabPage using the Collection Editor with same 'Designer is not initialized' error appears.

12899RemoveCollection.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants