vmister
January 14th, 2003, 03:34 AM
I've a middle-component (DLL Library) that return a dataset that contains an expression column:
data.Tables[0].Columns.Add("MyCol",typeof(string),
"Parent(myrelation).OtherField");
The problem is that when I try to insert a new record into database, the Update method show this error message: "Cannot change ReadOnly property for the expression column".
If I set the property DataAdapter.InsertCommand.UpdateRowSource to None or remove SELECT statement in INSERT query run correctly but in the my situation is necessary reload data after insert
command.
Is It possible solve this problem ?
data.Tables[0].Columns.Add("MyCol",typeof(string),
"Parent(myrelation).OtherField");
The problem is that when I try to insert a new record into database, the Update method show this error message: "Cannot change ReadOnly property for the expression column".
If I set the property DataAdapter.InsertCommand.UpdateRowSource to None or remove SELECT statement in INSERT query run correctly but in the my situation is necessary reload data after insert
command.
Is It possible solve this problem ?