DataRow: Select cell value by a given column name

后端 未结 8 1550
小鲜肉
小鲜肉 2020-12-15 15:19

I have a problem with a DataRow that I\'m really struggling with.

The datarow is read in from an Excel spreadsheet using an OleDbConnection.

If I try to sele

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 15:46

    for (int i=0;i < Table.Rows.Count;i++)
    {
          Var YourValue = Table.Rows[i]["ColumnName"];
    }
    

提交回复
热议问题