Hi,
I need to dynamically create my columns in a radgrid, because I do not know how many columns I need to display.
The data to be displayed is fetched in the event handler of a button. When I receive that data I know how many columns to create. Problem is, this event handler is run after Page_Load, which as I understand it is the place where you have to create your grid columns for them to show up.
The result at the moment is that the grid is not shown until I click the button again, at which point the data is available at Page_Load and the columns is created accordingly. How can I solve this problem? I obviously want the result to be displayed after only one post back!
Best regards
I need to dynamically create my columns in a radgrid, because I do not know how many columns I need to display.
The data to be displayed is fetched in the event handler of a button. When I receive that data I know how many columns to create. Problem is, this event handler is run after Page_Load, which as I understand it is the place where you have to create your grid columns for them to show up.
The result at the moment is that the grid is not shown until I click the button again, at which point the data is available at Page_Load and the columns is created accordingly. How can I solve this problem? I obviously want the result to be displayed after only one post back!
Best regards