K
kcakebread
Using VB 2005, I have a strongly typed dataset (from a .xsd file in my
project).
When I load data into this dataset, the immediate window shows:
?ds.TableX(0).IstheFieldNull
True
So, dutifully, I give it a value:
ds.TableX(0).theField = "testabc123"
I can look in the immediate window and see:
?ds.TableX(0).IstheFieldNull
False
?ds.TableX(0).theField
"testabc123"
However, I can also see:
?CType(ds.GetChanges, dsObjectType).TableX(0).IstheFieldNull
True
Clearly, GetChanges() recognized the TableX(0) row was modified, but it
failed to include my column value. Furthermore, if I:
ds.writexml("c:\ds.xml")
ds.GetChanges().WriteXML("c:\dschanges.xml")
I see that the row of interest is in the XML, but the column is
actually missing (ie null).
Anyone have any ideas?
Kerry
project).
When I load data into this dataset, the immediate window shows:
?ds.TableX(0).IstheFieldNull
True
So, dutifully, I give it a value:
ds.TableX(0).theField = "testabc123"
I can look in the immediate window and see:
?ds.TableX(0).IstheFieldNull
False
?ds.TableX(0).theField
"testabc123"
However, I can also see:
?CType(ds.GetChanges, dsObjectType).TableX(0).IstheFieldNull
True
Clearly, GetChanges() recognized the TableX(0) row was modified, but it
failed to include my column value. Furthermore, if I:
ds.writexml("c:\ds.xml")
ds.GetChanges().WriteXML("c:\dschanges.xml")
I see that the row of interest is in the XML, but the column is
actually missing (ie null).
Anyone have any ideas?
Kerry