Bhu,
A dataset has no columns, so what you want is not possible.
A datatable has rows which have items and therefore is just itterating
through the datatable and than itterating through the dataitems per row.
If you want a header than you have first to iterate through the columns from
the datatable to get the columnnames.
This is not a language newsgroup, so code is difficult to give because it
can be in any program languages.
If you want code for this I advice you to ask it in a language newsgroup,
although to ask code for this is in my opinion a little bit overdone so
simple as this is to achieve.
Cor
"bhu" <bh**********@hotmail.comschreef in bericht
news:On**************@TK2MSFTNGP06.phx.gbl...
Hi
I want to retrieve data from the database and save it to txt File with
positions.
Let us Say 3 columns are got, i have to save at say 3-8 the first column
, 9-15 2nd Column, 16-29 3nd Column.
is there any code available , can u please post those links.
thank you
bhu