Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个博客列表,我想按年份对它们进行分组
var data = Controller.Blog.GetBlogs().GroupBy(x => x.Year);
分组后,我需要将数据绑定到中继器以读取年份,然后将内容绑定到我使用的嵌套中继器
var data = e.Item.DataItem;
但我不知道该投什么。我尝试了很多选择,但没有任何效果。我可能以错误的方式解决问题,所以如果我是,请指出我正确的方向。