Gridview排序中的问题 [英] Problem in Gridview Sorting

查看:54
本文介绍了Gridview排序中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我在asp.net c#上开发网站,我有GridView我已经在gridview中启用了排序。排序正在运行,但它无法正常工作。

例如它的工作方式是这样的

i有1-1000的序列号,它不像1-2-那样排序3-4-5-6-7-8-9-10-11 .... 1000。

i它排序如下1-10-100-101 ....... < br $> b $ b

i想这样1-2-3-4-5-6-7-8-9-10-11 .... 1000。

请帮帮我怎样才能解决这个问题。



谢谢。

Hello,
I am developing website on asp.net c# , I have GridView i have enable sorting in gridview. Sorting is working but it is not working correctly.
for Example it is working like this
i have serial num from 1-1000, it is not sorting like 1-2-3-4-5-6-7-8-9-10-11....1000.
i it sorting like this 1-10-100-101.......

i want like this 1-2-3-4-5-6-7-8-9-10-11....1000.
please help me how can i solve this.

Thank You.

推荐答案

检查你的序列号的数据类型,如果它的NVARCHAR可能无法正常工作
check your data type of serial num if its NVARCHAR it may not work properly


这篇关于Gridview排序中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆