K
Keithb
I am trying to change the value of a field in a table that is a member of
strongly typed DataSet. The code:
foreach (DataRow rw in dt.Rows) {
rw.ItemArray[16] = (string)c3Text;
}
does not change the content of the item.
Using debugging tools to look at rw, I see this message where the data
should be.
"c3LabelText = '((DataSet1.DisplayRow)(rw)).c3LabelText' threw an exception
of type 'System.Data.StrongTypingException'"
What am I doing wrong?
Thanks,
Keith
strongly typed DataSet. The code:
foreach (DataRow rw in dt.Rows) {
rw.ItemArray[16] = (string)c3Text;
}
does not change the content of the item.
Using debugging tools to look at rw, I see this message where the data
should be.
"c3LabelText = '((DataSet1.DisplayRow)(rw)).c3LabelText' threw an exception
of type 'System.Data.StrongTypingException'"
What am I doing wrong?
Thanks,
Keith