Loop through the rows of a particular DataTable

前端 未结 4 517
轮回少年
轮回少年 2021-02-01 03:09

IDE : VS 2008, Platform : .NET 3.5,

Hi,

Here is my DataTable columns :

ID Note Detail

I want to write sth like this :

//below cod         


        
4条回答
  •  生来不讨喜
    2021-02-01 03:17

    Dim row As DataRow
    For Each row In dtDataTable.Rows
        Dim strDetail As String
        strDetail = row("Detail")
        Console.WriteLine("Processing Detail {0}", strDetail)
    Next row
    

提交回复
热议问题