Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

typed dataset with calculated column and GetChanges

Status
Not open for further replies.

ija

Programmer
Feb 13, 2002
38
CZ
Hi.

I use a typed dataset with one calculated column with a simple expression (like "colA*colB"). When I call the GetChanges() method, something happens in the dataset, which in the end causes an error.
Here is output from the immediate window:

[tt]
?dsDataset1.GetChanges()
{"Cannot remove this column, because it is part of an expression: calculatedCol = (colA*colB)." }
System.SystemException: {"Cannot remove this column, because it is part of an expression: calculatedCol = (colA*colB)."}
m_paramName: null
Message: "Cannot remove this column, because it is part of an expression: calculatedCol = (colA*colB)."
ParamName: ""
[/tt]

Some ideas what is going on and what to do with it?
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top