General information
Title:
Accessing a field from current dataset
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only