0
我可以从具有名为“Col1中”和“col2的”这样的列的.NET数据表中的值:我可以通过名称使用变量来引用一个字段吗?
DataTable dt = new DataTable()
// some more code that fills it
Console.Writeline("{0}, {1}", dt.Rows[0]["Col1"], dt.Rows[0]["Col2"]);
我还可以使用一个变量,如果我的表具有很多列
的string x = // something that will be one of the columns in the table
dt.Rows[i][x] = "Some new value"
在NAV中有这样的记录变量可能吗?