System.Data.DataTable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Smith

    #1

    System.Data.DataTable


    This works:

    Dim dt As System.Data.Dat aTable
    Dim r As System.Data.Dat aRow = 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_i zvedbe (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.


  • John Smith

    #2
    Re: System.Data.Dat aTable

    but I would like to get column value as string and it doesn't work because
    column name is ows_Rok_x0020_i zvedbe (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?


    Comment

    Working...