question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Editing with nested TableLayoutPanel adds additional Row and Column Styles whenever form is edited

See original GitHub issue

Environment

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:open
  • Created 7 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MelonWang1commented, May 30, 2023

@paul1956 This issue will be fixed in the future but not sure when.

1reaction
MelonWang1commented, Feb 8, 2023

@paul1956 Yes, it’s an internal ticket. If this issue has updated or resolved, will let you know.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found