字母数字排序数据网格 - 可重复使用的无忧代码
朋友们,
我有大约 20-30 个数据网格,每个数据网格都有不同的数据。有没有一种方法可以对数据网格进行排序,而无需在每个排序事件中编写自定义代码?
我想要一些代码,我需要做的就是以数据网格的名称传递它,也许还有一个方向。
我不想回调数据库,但相反,我有一个列表,每个数据网格将有一个不同的泛型列表值。
账单。
Friends,
I have about 20-30 datagrids that have different data on all of them. Is there a way that I can sort a datagrid with out writing custom code in each sorting event?
I want some code that all i need to do is pass it in a name of a datagrid, and perhaps a direction.
I don't want to make a call back to the database, but instead, i have a List Each Datagrid will have a different Generics List Value.
Bill.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
是的,在所有无需编写任何代码,即可为您处理分页和排序。
Yes, use LinqDataSource on all of them and paging and sorting will be taken care of for you without writing a single line of code.