Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Guys can u please help me in removing the sort arrow symbol from the webgrid header of mvc3??
Posted

1 solution

I believe by setting 'CanSort' as false should do the trick automatically. Quick reference: http://weblogs.asp.net/andrebaltieri/archive/2010/11/02/asp-net-mvc-3-working-with-webgrid-part-2.aspx[^]

Try out if that works for a column.
 
Share this answer
 
Comments
JaganPoovannan 5-Apr-13 3:11am    
Actually boss I have already sorted in the descending order by default for the fourth column. It should be in that order always. So now since that symbol becomes meaningless, I want to remove it without affecting the sorting functionality. this is my problem. could u please suggest some ideas?
Sandeep Mewara 5-Apr-13 4:38am    
Get the data in the desired sort order and then just bind/show that. Set canSort as false.

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