How do I update a row in a DataSet. .NET keeps telling me that the Item
is read-only. The field is a type Boolean. I've tried a couple of
different code lines:
------------------------------------------------------------------
g_DSQuestions.Tables(0).Rows(m_intQuestion).BeginEdit()
g_DSQuestions.Tables(0).Rows(m_intQuestion)(3) = True
------------------------------------------------------------------
------------------------------------------------------------------
g_DSQuestions.Tables(0).Rows(m_intQuestion).BeginEdit()
g_DSQuestions.Tables(0).Rows(m_intQuestion).Items("Answered") = True
------------------------------------------------------------------
------------------------------------------------------------------
arrQuestionData(0) = g_DSQuestions.Tables(0).Rows(m_intQuestion).Item
("QuestionID")
arrQuestionData(1) = g_DSQuestions.Tables(0).Rows(m_intQuestion).Item
("QuestionOrdinal")
arrQuestionData(2) = g_DSQuestions.Tables(0).Rows(m_intQuestion).Item
("QuestionText")
arrQuestionData(3) = True
g_DSQuestions.Tables(0).Rows(m_intQuestion).BeginEdit()
g_DSQuestions.Tables(0).Rows(m_intQuestion) = arrQuestionData
------------------------------------------------------------------
All of these end up with the system throwing an error that the Item column
is read-only. How do I un-protect the stupid row?!?
Thanks for your help in advance.