You can do something like so:
Dim dt As DataTable = ds.Tables[0]
Dim colArray As String(dt.Columns.Count)
For counter = 0 to dt.Columns.Count - 1
colArray(counter) = dt.Columns[counter].ColumnName
Next
Written on the fly, so debug may be necessary (I am more confident of my C#
right now ;->).
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** ********************
Think Outside the Box!
************************************************** ********************
<rm******@wfubmc.edu> wrote in message
news:0b****************************@phx.gbl...
Need help finding simple way to retrieve a fields (or
columns) collection from a Dataset without filling it
first.