I am using c# to add a document-level customization to word.
I have created a button, which opens up an actions pane where data is added to a 3 column table, e.g. "LastName, FirstName", "Role", and a button to delete the row.
For each row I add, I want the button click event of the 'delete' button to remove the row. However, I am stumped as to how to add the click event when the button is added dynamically.
Before hand, I have no idea how many rows will be added, and am naming the button control based on the pattern "btnDelete" + rowIndexNumber.
I am just learning C# but am pretty good with VBA.