我有一个 DataGridView,我用从 Web 服务获得的数据填充。
AdminTool.adminWS.templateListDTO[] templateList = null;
AdminTool.adminWS.OwordBeanService owClient = new AdminTool.adminWS.AdminBeanService();
GetAllTemplateList templateListParameter = new GetAllTemplateList();
templateListParameter.UserLanguage = "EN";
templateList = owClient.GetAllTemplateList(templateListParameter);
dataGridTemplateList.DataSource = templateList;
dataGridTemplateList.Refresh();
我已将网格中所有列的 SortMode 设置为 Automatic,但它不会排序。我在网上做了一些研究,从我读过的文章中他们谈到了一个可排序的 BindingList,但我不知道如何继续。我是否应该将从 Web 服务获得的内容转换为可排序的 BindingList?如果是这样,我该怎么做?还有其他方法可以使我的网格可排序吗?
谢谢!