排序数据网格视图 [英] SORT DATA GRID VIEW

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

问题描述

每个好友

当我单击数据网格的字段时,它不是正确的按数字排序,
排序为False,
请帮帮我


改善:

我想在Datagrid的标题字段中单击时,按数字对列进行排序,但是对它的排序方式类似于字符串!

注意:我的数据类型是DataBase中的Number

Hi Every Buddy

when i click on the field of data grid , its not true Sorted by number ,
its sorted False ,
Please help me


Improve:

i want when i click in header field of Datagrid that column sort By numeric , but its Sort Like As String !

Note: my Data type is Number in DataBase

推荐答案

如果您需要与此相关的质量帮助,则需要提供更多信息.

我猜您有数字数据,但将其存储在字符串中.所以它的排序方式是:1、11、12、2、3、4,而不是:1、2、3、4、11、12?无论您将数据放入网格中,您都需要指定其为数字.如果您需要更多帮助,请发布用于设置网格的相关代码.
You''re going to need to provide more information if you want quality assistance with this.

I''m guessing that you have numerical data but are storing it in a strings. So it''s sorting like this: 1, 11, 12, 2, 3, 4 instead of this: 1, 2, 3, 4, 11, 12? However you are putting data into the grid, you''ll need to specify that it is numeric. If you want more help, please post the relevant code you are using to setup your grid.


这篇关于排序数据网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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