Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing a field from current dataset
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Accessing a field from current dataset
Miscellaneous
Thread ID:
00993047
Message ID:
00993047
Views:
56
I am trying to get a valus foma column in a dataset, but
its giving an error on third line below
..cannot implicitly convert type Object to Int

int MyPK;
DataRowView drView = (DataRowView)this.BindingContext[ds,"MYTABLE"].Current;
MyPK = drView["MyField"];

Any ideas on whats causing this.
Regards,
Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform