Button btn = new Button(); btn.ID = "btn"; btn.Text = "Button"; btn.Click += new System.EventHandler(btn_Click); this.form1.Controls.Add(btn);
TableCell cell = new TableCell(); if (j == 0) { Button b = new Button(); b.Text = dt.Rows[i][j].ToString(); b.ID = i + "," + j+"Button"; b.Click += new EventHandler(b_Click); cell.Controls.Add(b); row.Cells.Add(cell); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)