brgdotnet
asked on
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"
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"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.