mohit Posted December 8, 2003 Posted December 8, 2003 Hi, Can anyone suggest a way to create columns programatically in a dataset.The values of the new columns will be retrieved from a differant table in the dataset based on some values. Basically I am importing a excel file in the dataset.The excel file does not have a Rate field. The rate field for the datatable is to be set from the "rates table" based on the phone nos. in the excel file. I am using the jet oledb provider for accesing the excel file. Any suggestions are most welcome. As you might have guessed I am a little new in asp.net Quote
Moderators Robby Posted December 9, 2003 Moderators Posted December 9, 2003 You can create a new Datatable at runtime the add it to the dataset. Quote Visit...Bassic Software
Moderators Robby Posted December 9, 2003 Moderators Posted December 9, 2003 this may help, check out page 3 of the article... http://www.aspalliance.com/articleViewer.aspx?aId=102&pId=1 Quote Visit...Bassic Software
mohit Posted December 10, 2003 Author Posted December 10, 2003 Thanks robby, I went throught the article. One thing is that they are adding the new columns with pre-determined values. I want to retrieve the new column values from another table. I have a dataset with phone numbers and country codes. I want to another column to this dataset which indicates rates for countries(these rates are in "RATES table ). I am now trying to use Relations class for the dataset. Any suggestions are welcome Thanks Mohit Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.