I'm trying to make a dynamic layout to display data from a database, for that i'm using a tablelayoutpanel and I got it to where it puts the data in the fields I want it go to but I can't figure out how I would go about giving some of the fields a row or column span since some of them need to go over multiple fields
this is the code I use to create one of the labels that would need a columnspan
tableLayoutPanel1.Controls.Add(new Label()
{ Text = stat, Dock = DockStyle.Fill, BackColor = Color.Green, AutoSize = true }
, 7, row);
I did search on SO for a solution and I did find some that would set the columnspan, but they just wouldn't work with the way i create the labels.
tableLayoutPanel1.SetRowSpan([control name],[rowspan] );
//[] is what is supposed to be placed there
since this is the code I found and because I created the labels in the code I can't give the control name. (It's very possible due to a mistake made by me)