I define my own object datasource. When I debug the Fill method, I can see that iPackageId is 1. Nothing changes it, but when I insert a new record, the Insert method on my objectdatasource recivies iPackageId as 0. why?
1 Answer, 1 is accepted
answered on 09 Jan 2009, 07:50 AM
I suspect that the behavior you are experiencing is due to the fact that you have a field in RadGrid's edit/insert form which is with the same name as the parameter which is declared as an insert parameter. Thus RadGrid will populate this parameter when inserting or editing using automatic operations. You may consider setting this column as ReadOnly and set ForceExtractValue to None in order to prevent RadGrid to extract column's value.
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.