Gridview rowdatabound event firing twice on content page

  • Thread starter Thread starter Julia B
  • Start date Start date
J

Julia B

I wonder if anyone can help.

I've got a content page within a master page with a gridview on it. It's
populated with an objectdatasource. The content page's autoeventwireup
property is set to false but the gridview rowdatabound event still fires
twice, which is causing real problems.

This is the order of what happens:

1 - the content page loads first
2 - the gridview loads firing the rowdatabound event the first time
3 - then the master page loads
4 - then the gridview reloads firing the rowdatabound event the second time
(the content page's load event doesn't fire twice)

Does this make sense? Has anyone any suggestions on how to stop this
happening?

Julia
 
Back
Top