Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
RowAddingEventArgs not having values when adding row
posted

Hi Folks -

Need some help here, I'm creating a wrapper around the WebDataGrid control where its been build at runtime and added as child control of a parent div control; columns, required behaviors are created as well and datasource control is associated via coding.

Everithing render and looks good so far, but when adding data into the new row and pressing intro keyword I receive an error message from the ObjectDataSource that said:

ObjectDataSource 'ods_myWebGridCtrl' has no values to insert.

The ObjectDataSource has set the property 'DataObjectTypeName'

i.e.
<asp:ObjectDataSource ID="objDS" runat="server" 
   TypeName="AssemblyNamespace.WebGridDataProvider"
   SelectMethod="..."
   UpdateMethod=""
   InsertMethod="..."
   DataObjectTypeName="AssemblyNamespace.EntityModel.User">

<asp:ObjectDataSource>

I referenced a client side event "EditingCoreBehavior.EditingClientEvents.RowAdding" when this client event fires the argument "eventArgs" does contain the key and values for each column, but when the server event RowAdding it does not have this values the Values hastable is empty, am I missing some setting?

I will appreciate any help.

Regards