Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // The bottom section of the method which 'generates' buttons for each row made in the for loop - everything works perfect to this point
- TableCell addButtonCell = new TableCell();
- Button addButton = new Button();
- addButton.Text = "Add";
- addButton.Width = 75;
- addButton.Click += new EventHandler(addButton_Click);
- addButtonCell.Controls.Add(addButton);
- row.Cells.Add(addButtonCell);
- tblResults.Rows.Add(row);
- }
- // button event handler
- public void addButton_Click(object sender, EventArgs e) {
- System.Diagnostics.Debug.Write("TESTING!!!!!"); // Tried this, no effect
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement