Editing with nested TableLayoutPanel adds additional Row and Column Styles whenever form is edited
See original GitHub issueEnvironment
Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.5.0 Preview 5.0
.NET version
.New 7.0 but don’t matter issue is designer.
Did this work in a previous version of Visual Studio and/or previous .NET release?
Before OOP Designer
Issue description
Before edit
TableLayoutPanelTopEx1.ColumnStyles.Add(New ColumnStyle())
TableLayoutPanelTopEx1.ColumnStyles.Add(New ColumnStyle(SizeType.Percent, 100.0F))
TableLayoutPanelTopEx1.Dock = DockStyle.Fill
TableLayoutPanelTopEx1.LabelText = ""
TableLayoutPanelTopEx1.Location = New Point(3, 3)
TableLayoutPanelTopEx1.Name = "TableLayoutPanelTopEx1"
TableLayoutPanelTopEx1.RowCount = 1
TableLayoutPanelTopEx1.RowStyles.Add(New RowStyle(SizeType.Percent, 50.0F))
After any edit
Me.TableLayoutPanelTopEx1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle())
Me.TableLayoutPanelTopEx1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100.0!))
Me.TableLayoutPanelTopEx1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle())
Me.TableLayoutPanelTopEx1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100.0!))
Me.TableLayoutPanelTopEx1.Dock = System.Windows.Forms.DockStyle.Fill
Me.TableLayoutPanelTopEx1.LabelText = ""
Me.TableLayoutPanelTopEx1.Location = New System.Drawing.Point(3, 3)
Me.TableLayoutPanelTopEx1.Name = "TableLayoutPanelTopEx1"
Me.TableLayoutPanelTopEx1.RowCount = 1
Me.TableLayoutPanelTopEx1.RowStyles.Add(New System.Windows.Forms.RowStyle())
Me.TableLayoutPanelTopEx1.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50.0!))
Steps to reproduce
Open Project, Open form1 change anything, Save and additional Row and Column Styles are added equal to the number of Rows and Columns.
https://github.com/paul1956/WinFormsTableListViewIssue
Diagnostics
None
Issue Analytics
- State:
- Created 7 months ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Edit Columns and Rows in a TableLayoutPanel Control
Learn how to use the Column and Row Styles dialog box to edit the rows and columns of your Windows Forms controls.
Read more >Arranging Controls Using a TableLayoutPanel - Windows ...
Learn how to arrange controls on your Windows Forms by using the FlowLayoutPanel control and the TableLayoutPanel control.
Read more >C# TableLayoutPanel - 2nd row content not displayed
- A main TableLayoutPanel with 2 rows to separate things in two parts - A nested TableLayoutPanel containing a "header" - A label...
Read more >C# TableLayoutPanel Example
In this step, we add all six rows required for the TableLayoutPanel. First, we select it using the Document outline view. Then, we...
Read more >Working With Layouts in JavaFX: Using Built-in Layout Panes
The GridPane layout pane enables you to create a flexible grid of rows and columns in which to lay out nodes. Nodes can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@paul1956 This issue will be fixed in the future but not sure when.
@paul1956 Yes, it’s an internal ticket. If this issue has updated or resolved, will let you know.