Loop through the rows of a particular DataTable

前端 未结 4 1653
轮回少年
轮回少年 2021-02-01 03:06

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:13

    You want to loop on the .Rows, and access the column for the row like q("column")

    Just:

            For Each q In dtDataTable.Rows
                strDetail = q("Detail")
            Next
    

    Also make sure to check msdn doc for any class you are using + use intellisense

提交回复
热议问题