开发者

GridView sorting without JavaScript?

开发者 https://www.devze.com 2022-12-22 19:30 出处:网络
When \"AllowSorting\" is true on an asp.net GridView, it just makes the headers with a SortExpression clickable.

When "AllowSorting" is true on an asp.net GridView, it just makes the headers with a SortExpression clickable.

Tr开发者_C百科ouble is that it does this with JavaScript links - so with JS turned off you cannot sort the columns.

Before I go and write my own HeaderTemplate to use Querystrings instead of JavaScript, am I missing an easier way of being able to sort a GridView without any relyance upon JavaScript?

Thanks

bgs264


Replace the links with your own template which can contain buttons and then perform the sorting on the server side.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号