How to iterate all items in a given row in the DataTable

后端 未结 4 1389
眼角桃花
眼角桃花 2020-12-20 14:26

How to iterate all items in a given row in the DataTable . I have the following code to iterate all rows, I want another For loop to iterate all ce

4条回答
  •  情歌与酒
    2020-12-20 14:55

    You can use DataRow.ItemArray to do the job also

    the code would look something like this

    For Each item As var In Row.ItemArray
        //do something
    Next
    

提交回复
热议问题