I have TableLayoutPanel
displayed in grid form on the screen that already has an X amount of rows and columns, in addition to also contain components in its cells.
I allow, through a screen, the user to change the amount of rows and columns of TableLayoutPanel
in order to make new cells available on the grid so that the user drags new components to the screen.
I have found solutions that allow me to create what I want, as long as I already add a new component to the created row or column, in case I do not want to. The code snippet below shows the type of situation I found and is not good for me:
this.tableLayoutPanel1.RowStyles.Add(new RowStyle());
//para adicionar, neste caso, uma nova linha devo passar algum
//componente para ser colocado na célula. Quero apenas criar uma
//célula vazio
this.tableLayoutPanel1.Controls.Add(new Componente(), coluna, novaLinha);
Does anyone have any idea how to do this?