Home All Groups Group Topic Archive Search About

insert initial row in dataset

Author
31 Oct 2006 11:10 PM
MarkAurit
I have a DataSet I will be writing out to an excel file, and first Id like to
insert (at the top) names of the Columns.  I want to put the names in an xml
file to make them easily configurable, so I was wondering if it was possible
to do something like
ds.insert (< column name 1>,<column name 2>, etc ..
ds.databind ( or whatever command)
Thanks, Mark

Author
1 Nov 2006 6:05 PM
Bill Block
Here are a couple links that describe how to do this...

Adding columns to a DataTable
http://msdn2.microsoft.com/en-us/library/hfx3s9wd.aspx

Adding data to the DataTable
http://msdn2.microsoft.com/en-gb/library/5ycd1034.aspx

Bill

AddThis Social Bookmark Button