数据网格排序 [英] Datagrid Sorting
本文介绍了数据网格排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的aspx中创建了一个数据网格,其中''AllowSorting''属性为true。
单击列标题时,页面刷新。然而,排序
没有完成。我错过了什么吗?
我填充数据如果!回发。
I have created a datagrid in my aspx with the ''AllowSorting'' property to true.
When clicking on the column header, the page refreshes. However the sorting
is not done. Am I missing anything?
I populate the data if !postback.
推荐答案
您好,
您是否在DataGrid_SortCommand中实现了排序代码
活动?
Elton Wang
el********@hotmail.com
Hi there,
Do you implement sorting codes in DataGrid_SortCommand
event?
Elton Wang
el********@hotmail.com
-----原始消息-----
我已经在我的aspx中使用
创建了一个数据网格''AllowSorting''属性为true。
点击列标题时,页面刷新。
但是排序没有完成。我错过了什么吗?
我填写数据如果!回发。
。
-----Original Message-----
I have created a datagrid in my aspx with the ''AllowSorting'' property to true.
When clicking on the column header, the page refreshes. However the sortingis not done. Am I missing anything?
I populate the data if !postback.
.
是。事实上,我通过sort事件进行了排序。但是当我通过列创建事件更改了列标签时,列变为
不可排序。
" ; Elton Wang写道:
Yes. In fact, I made the sort through the sort event. However when I changed
the column label via the column create event, the columns were become
non-sortable.
"Elton Wang" wrote:
您好,
您是否在DataGrid_SortCommand
活动中实现了排序代码?
Elton Wang
el********@hotmail.com
Hi there,
Do you implement sorting codes in DataGrid_SortCommand
event?
Elton Wang
el********@hotmail.com
-----原始消息-----
我在我的aspx中创建了一个datagrid,其中
-----Original Message-----
I have created a datagrid in my aspx with
''AllowSorting''属性为true。
the ''AllowSorting'' property to true.
单击列标题时,页面会刷新。
When clicking on the column header, the page refreshes.
然而排序
However the sorting
未完成。我错过了什么吗?
我填写数据如果!回发。
。
is not done. Am I missing anything?
I populate the data if !postback.
.
你的意思是列变得不可排序,
DataGrid_SortCommand不能被解雇或其他?你有没有给b $ b更详细的信息?
Elton Wang
el ******** @ hotmail.com
What do you mean the columns become non-sortable,
DataGrid_SortCommand can''t be fired or other? Could you
give more detailed in?
Elton Wang
el********@hotmail.com
-----原帖-----
是的。事实上,我通过sort事件进行了排序。
但是当我通过列创建事件更改了列标签时,列
是可以排序的。
Elton Wang写道:
-----Original Message-----
Yes. In fact, I made the sort through the sort event. However when I changedthe column label via the column create event, the columns were becomenon-sortable.
"Elton Wang" wrote:
您好,
您是否在DataGrid_SortCommand
活动中实现了排序代码?
Elton Wang
el********@hotmail.com
Hi there,
Do you implement sorting codes in DataGrid_SortCommand
event?
Elton Wang
el********@hotmail.com
> -----原始消息-----
>我在我的aspx中创建了一个datagrid,其中
>-----Original Message-----
>I have created a datagrid in my aspx with
''AllowSorting''属性为true。
the ''AllowSorting'' property to true.
>
>点击列标题时,页面
>
>When clicking on the column header, the page
刷新。然而,排序
refreshes. However the sorting
>未完成。我错过了什么吗?
>
>我填写数据如果!回发。
>
>。
>
>is not done. Am I missing anything?
>
>I populate the data if !postback.
>
>.
>
。
这篇关于数据网格排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文