且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

查找行中包含一个值的列的索引

更新时间:2022-12-10 08:00:23

如果我理解正确的问题,您可以尝试spreadsheet.WorkbookData.Tables[0].Columns[c.ToString()].Ordinal,它返回列的位置
If I understood the question right, you might try spreadsheet.WorkbookData.Tables[0].Columns[c.ToString()].Ordinal, which returns the position of the column