sweet_salt

hi,

I just want to know a sample code to access the rows and columns of a data table.

Waiting for your reply.

Sweety



Re: .NET Framework Data Access and Storage Help Needed to access the rows of the DataTable

DMan1

where dt is your datatable:

For Each r As DataRow In dt.Rows

For Each c As DataColumn In dt.Columns

Console.WriteLine(r(c.ColumnName))

Next

Next

will write to the console every value of every column in every row






Re: .NET Framework Data Access and Storage Help Needed to access the rows of the DataTable

sweet_salt

Thx a looooooooooooottttttttttt for the reply.it was very helpful..

bye

Sweety