Unable to edit data in DataView/Datable. Column is read only??

  • Thread starter Thread starter Antonio Ooi
  • Start date Start date
A

Antonio Ooi

Hi,

I did this but failed:

dtbResultConfig.Rows(0).BeginEdit()
' Hit a 'Column 'FKTableName' is read only error at the line below
dtbResultConfig.Rows(0)("FKTableName") = "something"
dtbResultConfig.Rows(0).EndEdit()
dtbResultConfig.AcceptChanges()

Can anyone helps? Thank in advance!

Antonio
 
Solved. Do not use:

sqlAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey

if you planned to edit your data in within the DataTable or DataView.
Thanks.

Antonio
 
Back
Top