从Enterprise Library获取的数据的DataGridView的中文排序

我的DataGridView的中文排序总是不正常,不是按照拼音排序的,后来才发现问题出在数据源上,从Enterprise Library获取的数据源的Locale为空,只要在获取数据源后加上一句

ds.Locale = System.Globalization.CultureInfo.CurrentCulture;

即可。

原文地址:https://www.cnblogs.com/soonssa/p/1362553.html