0
的指數我的數據表,它的第一行標題 我根據頭LINQ數據行上得到具體項目
我知道如何讓列,如果知道它的索引需要特定的列此數據表。 的問題是如何得到該指數
Dim columnIndex as integer
Dim headerRow As DataRow = dt.Rows(0)
Dim colHeader As string ="abc"
columnIndex=???
Dim result = dt.Rows.Cast(Of DataRow)().[Select](Function(row) row(columnIndex)).Distinct().ToList()
感謝