----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: DotNetSavy Message 1 in Discussion Hi all, I need to read a text file into a dataset and read those values and insert into a table. I am facing a problem in accessing the values of the Dataset. In my text file - first row is the column headers like UNIT,PARTNO,DESCRIPTION - etc. All these columns are fixed length columns in the text file. I could load the values in to a Dataset. When I read the dataset value for the column DESCRIPTION - if I access the column value as objRow.["DESCRIPTION"].ToString() it gives an error saying "The colum DESCRIPTION does not exist in the table". But If I give like objRow["DESCRIPTION "].ToString() - it fetches the value for me - because the column header in the text file is 30 characters in length. Could any pls help me in resolving this issue so that I can read the dataset values as objRow["DESCRIPTION"].ToString() - means without the spaces in the column header. Thanks in advance Suhas ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
