M
Marina
Hi,
For some reasons, these lines of code sometimes differ in results:
myDataView.Item(1).row("MyColumn")
myDataView.Item(1)("MyColumn")
Sometimes the second version throws a NullReferenceException in the
System.Data.DataView.IsOriginalVersion(Int32 index) method. So the
DataRowView object being indexed to exists. And it definitely exists,
because the first version of the code works fine.
Can anyone tell me why going through the underlying row is OK, but not
through the indexer in datarowview directly?
For some reasons, these lines of code sometimes differ in results:
myDataView.Item(1).row("MyColumn")
myDataView.Item(1)("MyColumn")
Sometimes the second version throws a NullReferenceException in the
System.Data.DataView.IsOriginalVersion(Int32 index) method. So the
DataRowView object being indexed to exists. And it definitely exists,
because the first version of the code works fine.
Can anyone tell me why going through the underlying row is OK, but not
through the indexer in datarowview directly?