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.
たとえば、replace 関数をサポートするために DataColumn.Expression に拡張メソッドを使用できますか?
はいの場合、どこかで入手できるサンプルコードはありますか?
ありがとう。
おそらくあなたが考えている方法ではありません。
置き換える元の文字列ソースを気にしない場合は、各 DataRow を反復処理して、代わりに各項目の列の値を更新できます。
foreach(var row in yourDataTable.Rows) { row["colName"] = row["colName"].ToString().Replace("abc", "xyz"); }