|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
insert initial row in datasetI 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 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 |
|||||||||||||||||||||||