for (int i = 0, r = 0; i < dt.Rows.Count; i++, r++) { Label line = new Label(); Label Quest = new Label(); Label Quest = new Label(); Quest.Text = Convert.ToInt32(r + 1).ToString(); Quest.Text = dt.Rows[r]["Ques"].ToString(); Quest.AutoSize = true; tableLayoutPanel1.Controls.Add(Quest); tableLayoutPanel1.Controls.Add(Quest); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)