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.
私はデータテーブルを持っています。デフォルトのビューを列名「city」でソートしたいと思います。大文字と小文字を区別しない並べ替えを希望します。
ここに私が持っているコードがあります:
DataTable dt = GetDataFromSource(); dt.DefaultView.Sort = "city asc"; MyReport.DataSource = dt.DefaultView;
ありがとう。
どうでも。それはドキュメントにあります。
DataTable dt = GetDataFromSource(); dt.CaseSensitive = false; dt.DefaultView.Sort = "city asc";