Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2004

Tip: Looking for answers? Try searching our database.

DataRowVersion

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Murray Foxcroft - 21 Sep 2004 07:50 GMT
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.
Lord2702 - 21 Sep 2004 19:36 GMT
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 !!!

> I'm attempting to retrieve specific versions of a row's
> column in C++ (this works fine in C# - apart from the syntax)
[quoted text clipped - 8 lines]
> The value changes with the specified DataRowVersion enumeration: 256 for
> Original, 512 for Current and 1024 for Proposed.
Murray Foxcroft - 22 Sep 2004 17:10 GMT
Works like a charm - thanks!

> Tue. Sep. 21, 2004 11:35 AM PT
>
[quoted text clipped - 19 lines]
>> The value changes with the specified DataRowVersion enumeration: 256 for
>> Original, 512 for Current and 1024 for Proposed.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.