GridView中的排序列,不区分大小写

时间:2015-12-10 06:02:25

标签: c# asp.net

我有一个GridView有4列,我用EntityDataSource来绑定它的工作正常,现在的问题是排序其中一列是'职称'

<asp:BoundField DataField="JOB_TITLE" HeaderText="Job Title" SortExpression="JOB_TITLE"></asp:BoundField>
<asp:EntityDataSource ID="etsCaseUser" runat="server" 
    ConnectionString="name=****" 
    DefaultContainerName="****" 
    EnableFlattening="False" 
    AutoGenerateWhereClause="False"
    CommandText="select ui.[USER_ID], it.[CR_ID], it.[JOB_TITLE], it.[ADMISSION_DATE]
                from CASE_REVIEWS as it, USERS as ui where it.[SUBMITTED_BY] LIKE ui.[USER_ID]"
                OrderBy="it.[CR_ID]">
</asp:EntityDataSource>

当我单击标题文本进行排序时,它显示如下: Job Title Doctor Teacher doctor teacher

正如你所看到的那样区分大小写我想要对案例进行排序不敏感,我该怎么做?任何想法?

0 个答案:

没有答案