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,
I'm glad I could help.
If you have any other questions please do not hesitate to ask.
Thanks a lot
Hello alex_jupitersystems,
I examined your sample and I would suggest that you set the EnableDataViewState property of the grids to false. More information about DataViewState can be found here - http://blogs.infragistics.com/aspnet/articles/webdatagrid-dataviewstate-vs-viewstate.aspx.
Please let me know if this helps.
Sorry, I attached a wrong file, please kindly use this attached Code.zip instead,
thanks
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