Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey,

I have a view wherein I have two Webgrids using same model in MVC. The first grid shows 4 columns and the second grid shows 6 columns. However, these columns come from the same model defined. Now, the problem is related to any action regarding WebGrid.

Sorting and Paging works for both grid simultaneously. When I do sorting for one grid, other grid also gets sorted. And the header shows multiple names.

Example: If my header column name is Address, when sorted, it becomes "AddressAddress" on both grids.

I have viewed this online, but didn't make sense to me.
http://stackoverflow.com/questions/5349979/sorting-when-two-grids-are-on-the-same-page[^]

Does anyone have any idea, how to proceed with this or how to fix it?

Any help is appreciated.

Thanks.
Posted
Comments
TryAndSucceed 20-Aug-13 18:45pm    
I got how to do sorting and pagination separately based on the grid clicked. But, the header value still continues the same. It gets appended for the sorted column.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900