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
375
Multiple controls with the same ID '0_0' were found. FindControl requires that controls have unique IDs.
posted

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

WebApplication1.zip
Parents
  • 2501
    Suggested Answer
    posted

    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 Engineer
    Infragistics, Inc.

     

Reply Children
No Data