GridView in UpdatePanel adds extra rows when sorting another grid

Posted by chopps on Stack Overflow See other posts from Stack Overflow or by chopps
Published on 2010-03-24T16:52:22Z Indexed on 2010/03/24 17:03 UTC
Read the original article Hit count: 252

Filed under:
|

Hey Everyone,

I'm a seeing some weird behavior that i have never seen before.

I have two grid in separate UpdatePanels. I can page and sort each without any problems.

Each grid is set for 10 per page.

If the first grid (13 records) is paged to the second page and then i go down to the second grid (14 records) and page to the next page and the first grid adds a bunch of empty rows to the grid so it is full to show 10. There is no data in the rows...just empty rows. Each grid does this on paging and sorting.

Ive stepped through the code and the the loading of the other grids never happens so it tells my AJAX is doing something to add the 'phantom' rows to the grid.

Any ideas why or ways to debug this?

© Stack Overflow or respective owner

Related posts about gridview

Related posts about updatepanel