Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. // The bottom section of the method which 'generates' buttons for each row made in the for loop - everything works perfect to this point
  2.  
  3. TableCell addButtonCell = new TableCell();
  4. Button addButton = new Button();
  5. addButton.Text = "Add";
  6. addButton.Width = 75;
  7. addButton.Click += new EventHandler(addButton_Click);
  8.  
  9. addButtonCell.Controls.Add(addButton);
  10. row.Cells.Add(addButtonCell);
  11.  
  12. tblResults.Rows.Add(row);
  13. }
  14.  
  15. // button event handler
  16. public void addButton_Click(object sender, EventArgs e) {
  17. System.Diagnostics.Debug.Write("TESTING!!!!!"); // Tried this, no effect
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement