Hi,
I'm having an issue with adding columns to the radgrid programmatically. I'm adding GridTemplateColumns and doing it in Page_Init. I have read the documentation and have realized that I need to add them to the ColumnCollection before I set the properties so I am doing this also. Everything displays properly if(!Postback), but when I click to sort, refresh, page, etc, the content that I had displayed inside the grid remains, but a duplicate column is inserted for each column and the content in that column is blank. I have tried moving and taking out adding the new columns in the Page_Load, OnPreRender, Page_Init, and with if(!Postback) in each case, but I am not having any luck.
Is there something small that I'm missing that you can help me out with?
Thanks in advance,
Matt
I'm having an issue with adding columns to the radgrid programmatically. I'm adding GridTemplateColumns and doing it in Page_Init. I have read the documentation and have realized that I need to add them to the ColumnCollection before I set the properties so I am doing this also. Everything displays properly if(!Postback), but when I click to sort, refresh, page, etc, the content that I had displayed inside the grid remains, but a duplicate column is inserted for each column and the content in that column is blank. I have tried moving and taking out adding the new columns in the Page_Load, OnPreRender, Page_Init, and with if(!Postback) in each case, but I am not having any luck.
Is there something small that I'm missing that you can help me out with?
Thanks in advance,
Matt