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.
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
I am having this same problem - my template columns (editor templates) are defined in the markup but if I rebind the WebDataGrid on a postback, which is necessary in certain situations, I get an error regarding multiple controls with the same Id "Header1". This is driving me nuts - I do have an open case so no need to ask about it - here is the markup of my WebDataGrid (note is is hosted in a WebTab control with EnableAjax and EnableLoadOnDemand flags set to true).
<
="320px"
="false"
="true"
>
/>
="center">
="true">
="3%">
="10%">
="Left">
="5%">
="Right">
="Boolean">
="6%">
="OpenCommitmentsWebDataGrid_CurrencyEditorProvider1">
="10px">
="OpenCommitmentsWebDataGrid_DropDownProvider1">
="~/App_Styles"
="Accrue">
="OpenCommitmentsWebDataGrid_DropDownProvider2">
="100px"
="AccrueReasonID">