List変数をDaraRow変数に変換できますか?
可能であれば構文は下記で良いでしょうか?
dr_TransactionItem = lis_Path(int_TransactionNumber).ToDatarow
.NET の標準仕様に List型の変数 を直接的に DataRow型に変換するメソッドはないと思います。
もし実施するとなれば、元となるDataTableからDataRowを生成したうえで、その生成したDataRowの各列に、Listが持つ要素を代入していく方法が可能ではないでしょうか。
Hey
convert your list to datarow is not possible, you have 2 options
first one is loop through your list and then pass each value to a datarow variable into a specific column, the other one is just insert directly your list in your datatable using the followin method
lstFiles.Select(Function(n) cobj(n)).ToArray()
Regards
すみません、具体的なコード事例で示していただけないでしょうか?