Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Problem with reloading Grid with Templatecolumns
posted

Hi,

I have a web data grid with bound and templte columns in it. I bind it with a datatable which i get from a web service on page load. I added a usercontrol for pagination  in which on change of a dropdown list I need to get a new datatable from the webservice and bind it to the grid.

here I am getting an error that there are multiple columns with the same Id and the webgrid cant be loaded.If i remove the Templete columns then its workin fine.

 

Parents
  • 33839
    posted

    Hi Katuri,

    When are you adding the template columns?  Are they defined on the aspx or added in the code-behind.  If you add them in the code-behind, make sure you only do it once if ViewState is on.

    regards,
    David Young 

Reply Children
No Data