在c#中的crystal report中使用字母数字值对字符串字段进行排序 [英] sorting string fields with alphanumeric values in crystal report in c#

查看:96
本文介绍了在c#中的crystal report中使用字母数字值对字符串字段进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从数据库中检索了一个字段,其值为

BPV1,BPV2,...... CPV1,CPV2 ...,



打印报告排序的方式如下:

BPV1,

BPV10,

BPV100,

BPV11 ,

CPV1,

CPV2 ......



等等。



如何根据水晶报表中的数字排序(升序)对其进行排序

BPV1,

BPV2,

BPV3,

BPV10

BPV11,

BPV20,

CPV1 ,

CPV2,



依此类推

i have a field retrieved from database with values like
BPV1, BPV2, ... CPV1, CPV2...,

where printing report the sorting comes in such manner :
BPV1,
BPV10,
BPV100,
BPV11,
CPV1,
CPV2...

and so on.

how can i sort it according to numerical sorting (ascending) in crystal reports as
BPV1,
BPV2,
BPV3,
BPV10
BPV11,
BPV20,
CPV1,
CPV2,

and so on

推荐答案

看看这里: CrystalReports:按公式字段排序 [ ^ ]


这篇关于在c#中的crystal report中使用字母数字值对字符串字段进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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