Troubleshooting Exceptions: System.Data.ReadOnlyException

 

A ReadOnlyException exception is thrown when there is an attempt to change the value of a read-only data column.

Associated Tips

  • Change the column to read/write.
    This exception is thrown if you are attempting to change a value in a data column that is read-only. For more information, see DataColumn.

  • Make sure that you are modifying the data in the correct column.
    This exception is thrown if you are attempting to change a value in a data column that is read-only. For more information, see DataColumn.

See Also

ReadOnlyException
EndEdit
ItemArray
How to: Use the Exception Assistant