在asp.net中的datagrid的排序表达式字段中添加多个值 [英] Adding more than one value in sort expression field of datagrid in asp.net
本文介绍了在asp.net中的datagrid的排序表达式字段中添加多个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我正在处理一个数据网格,正在对gridview进行排序.我的要求是,我需要在模板字段的排序表达式值中添加多个值.
示例:-
hello friends ,
i am working on a datagrid,I am doing sorting on gridview . My reqwuirement is , i need to add more than one value to the sort expression value of template field.
Example:-
<asp:TemplateColumn SortExpression="custFName" HeaderText="Customer Name">
<itemtemplate>
<asp:Label ID="name" runat="server">
</itemtemplate>
我要在databind时间上添加值.我想添加要排序的名字和姓氏,而不是仅名字.
请帮助我
I am adding values on databind time .i want to add first name and last name to sort,rather than first name only .
Please help me
推荐答案
根据msdn,对多列进行排序时,此属性包含以逗号分隔的字段排序列表."
使用逗号分隔的值对多个字段进行排序.
As per msdn, "When multiple columns are sorted, this property contains a comma-separated list of the fields by which to sort."
Use comma separated values to sort on multiple fields.
这篇关于在asp.net中的datagrid的排序表达式字段中添加多个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文