I have an ASPX page that is dynamically creating a gridview from a database table. Each time the gridview is created on postback, I set the AutoGenerateDeleteButton attribute to true. However, the first time the gridview is created the delete button isn’t displaying. I wrote the value of AutoGenerateDeleteButton and it is True. When I add a second row to the gridview, the delete button then displays. Any suggestions?
Share
Instead of setting AutoGenerateDeleteButton to ‘true’, I just dynamically created a CommandField and added it as a column to the gridview. This seems to work every time. But thanks for the suggestions.