如何对动态绑定GridView进行排序 [英] How to Sort the dynamically bind GridView

查看:92
本文介绍了如何对动态绑定GridView进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有网格视图,我已经将数据绑定到不使用对象数据源的代码中,结果显示但是当我对数据进行排序或过滤数据丢失并且没有数据显示时,我输入下一个数据显示所有数据。





由代码绑定:

I have the grid view and i have binded the data to grid from code not using object datasource the result is showing but when i chick to sort or filter the data is lost and no data is shown still i enter the next data the all data are shown.


Binded by code :

ASPxGridViewSalaryTransaction.DataSource = SalaryTransactionList;
        ASPxGridViewSalaryTransaction.DataBind();

推荐答案

查看此链接。



对GridView进行排序


这个链接可以帮到你



http://www.dotnetfox.com/articles/gridview-sorting-example-in-Asp-Net-using-C -Sharp-1082.aspx [ ^ ]
this link may help you

http://www.dotnetfox.com/articles/gridview-sorting-example-in-Asp-Net-using-C-Sharp-1082.aspx[^]


这篇关于如何对动态绑定GridView进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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