System.Data.DataTable

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

This works:

Dim dt As System.Data.DataTable
Dim r As System.Data.DataRow = dt.Rows.Item(i)
i = r.Item(2)

but I would like to get column value as string and it doesn't work because
column name is ows_Rok_x0020_izvedbe (when read from XML) and I don't know
it's name in DataTable.

How can I list all colum names in one DataTable?

Please help and sorry for incomplete info.
 
but I would like to get column value as string and it doesn't work because
column name is ows_Rok_x0020_izvedbe (when read from XML) and I don't know
it's name in DataTable.

I wanted to say that I would like to retirive column value by entering
column name not by index ( r.Item(2)
). The problem is that I don't know column name and I would like somehow to
list all column names. How can I do that?
 
Back
Top