I am trying to add template columns dynamically to a grid which already has two columns
I used the code
I am able to create columns in the page Init event. But I have a problem using that logic in Init event, as I need to get data which decides the number of columns that need to be created, from database. I want to use it in pageload event.
Can you please help me in this. I am not able to create columns dynamically in pageload event now.
I followed the below posts but all of them are talking about page init event.