字母数字排序数据网格 - 可重复使用的无忧代码

发布于 2024-12-11 01:17:59 字数 194 浏览 2 评论 0原文

朋友们,

我有大约 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扬花落满肩 2024-12-18 01:17:59

是的,在所有无需编写任何代码,即可为您处理分页和排序。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文