开发者

GridView sorting without JavaScript?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜