I have attached a small project to reproduce this problem.
I have a WebDataGrid with two template columns, the first template column is a checkbox to indicate if row is selected, also in the header there is a checkbox to select all rows including the rows in all pages if more than one page, but every time I click in any checkbox I'm getting following error:
Multiple controls with the same ID '0_0' were found. FindControl requires that controls have unique IDs.
Please see attached zip file.
Thanks
OscarG
Hello Oscar,
I was able to test the sample application you attached. By adding the following check in the PopulateGrid event for a PostBack, the error should not occur:
private void PopulateGrid(DataSet ds) { if (!IsPostBack) { AuditDataWebGrid.DataSource = ds; AuditDataWebGrid.DataBind(); ViewState.Add("DataSet", ds); } }
Please try the above code and let me know of your results.
Sincerely,Mike D.Developer Support EngineerInfragistics, Inc.
I am facing one problem in WebHierarchicalDataGrid that whenever rebinding the datas to the grid datasource “Multiple controls with the same ID '0_0' were found. FindControl requires that controls have unique IDs.” ERROR occurring. Even I cleared datasource before I bind the datasource in the grid. I could not resolve this problem since 2 days. Please give me the procedure to resolve this issue.
Note : This WebHierarchicalGrid contains Child Bands.