DataRowVersion

  • Thread starter Thread starter Murray Foxcroft
  • Start date Start date
M

Murray Foxcroft

I'm attempting to retrieve specific versions of a row's
column in C++ (this works fine in C# - apart from the syntax)

// by column number
row->Item[2, DataRowVersion::Original]->ToString();
// or column name
row->Item[S"FirstName", DataRowVersion::Original]->ToString();

However, both of these calls results in an error "Cannot find column 256"

The value changes with the specified DataRowVersion enumeration: 256 for
Original, 512 for Current and 1024 for Proposed.
 
Tue. Sep. 21, 2004 11:35 AM PT

I also face this problem. The actual problem is the indexer property Item
use the following syntax: you should be fine.

row->get_Item(2, DataRowVersion::Original)->ToString();
OR
row->get_Item(S"FirstName", DataRowVersion::Original)->ToString();

Good Luck !!!
 
Works like a charm - thanks!

Lord2702 said:
Tue. Sep. 21, 2004 11:35 AM PT

I also face this problem. The actual problem is the indexer property Item
use the following syntax: you should be fine.

row->get_Item(2, DataRowVersion::Original)->ToString();
OR
row->get_Item(S"FirstName", DataRowVersion::Original)->ToString();

Good Luck !!!

Murray Foxcroft said:
I'm attempting to retrieve specific versions of a row's
column in C++ (this works fine in C# - apart from the syntax)

// by column number
row->Item[2, DataRowVersion::Original]->ToString();
// or column name
row->Item[S"FirstName", DataRowVersion::Original]->ToString();

However, both of these calls results in an error "Cannot find column 256"

The value changes with the specified DataRowVersion enumeration: 256 for
Original, 512 for Current and 1024 for Proposed.
 
Back
Top