I have a programmatically created TableLayoutPanel. It works fine, but I could not find something: how can I make it size columns automatically when resizing the form? The panel is set to Dock.Top, and when I resize the form, rather than the size of each column in percent, only the last column grows. What can I do for this? Here, as I add ColumnStyle for each column:
this.tablePanelFilter.ColumnStyles.Add(
new ColumnStyle(SizeType.Percent,Convert.ToSingle(
Math.Ceiling((decimal)100 / (decimal)columnCount))));
source
share