I was working on 2 WebDataGrid controls where in the selected records can be interchanged when a button is clicked. example: I can transfer the values of grid1-> A,B,C,D,E to grid2 and vice versa. I did this on the server side by manipulating the datasources (List<T>) of both WebdataGrids. On the third time that I interchanged the records, the error "Multiple controls with the same ID 'it0_0' were found. FindControl requires that controls have unique IDs. " was encountered.
Please note of the code below when I change the datasource and rebind:
This is the first time I am working with WebDataGrids. Please let me know how to fix this or if there are patches that can be downloaded that would address the issue. I tried work arounds mentioned on the other threads, so far none of it was able to fix my concern.
Thanks
Hi alex_jupitersystems,
Thank you for posting in the community.
I was not able to reproduce the issue. Please find the attached sample, replicating the scenario you have described.
If you need further assistance on the matter please do not hesitate to ask.
I tried the attached file and the error wasn't replicated.
But if I used the templateDataField with a checkbox, the error is still encountered. The checkbox is used to determine if the row is to be transferred to another webdatagrid since our client was requiring this functionality and also that they wanted to select at most a single row only. I attached the aspx file and code behind.
Please kindly advise, thanks