Not able to change data in my System.Data.DataTable object

I have a table which I load from a reader object. The table has two columns. The first one is "Name" and the second one is "Explanation"

 At line 3 below a ReadOnlyException that is thrown telling me that Column "Name" is read only.
I haven't been able to set the read only attribute of the first column to turn of the read only attribute. Meaning setting it to False. Can someone help me out?

1    Dim table As New DataTable()
2     table.Load(reader)
3    table(0)(0) = "Hello"
LVL 2
brgdotnetcontractorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Duy PhamFreelance IT ConsultantCommented:
You can allow write to Name column by:
table.Columns("Name").ReadOnly = False

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.