I’m generating the columns of a gridview in code which is working fine (I have AutoGenerateColumns="false" set on the page), so I don’t have any columns defined in the html markup.
I would like to make one of the columns a ButtonField, so I can use a RowCommand handler in the code – is there a way to make a column a ButtonField programmatically?
ButtonField programmatic adding:
Markup:
Handler: