Aspxgridview objectdatasource updating

Rated 3.93/5 based on 897 customer reviews

But I frequently don't mark it right away because I feel once a thread is marked as answered, discussion tends to end. But I frequently don't mark it right away because I feel once a thread is marked as answered, discussion tends to end. Hi, I am Using the ASPx Grid View, and use the NEW button to open the edit form in order to add a new row in my grid.Refer to the Data Binding and Master-Detail Relationships topics for information on which objects can be assigned to the Data Source property.After the Data Source property is set to null, the Column View.after filling the fields and click on update, I assume that the data I entered has to be passed to the Insert function in my object data source.For your information, the Edit function works just fine in the same gridview.

If you want to manipulate your updated values, then I'd do this within the Row Updating handler.

If you want to manipulate your updated values, then I'd do this within the Row Updating handler.

If I want to add an additional Parameter to the be used in the Updat Method of my Object Data Source, then I'd use the Updating event handler.

When it seems like you can choose either option it's hard to know what's the correct choice and why. Net, there are almost always many ways to accomplish the same thing. The first one occurs earlier than the second one, I know that, but still which one do you prefer? I've set the Data Object Type Name property of my object data source so my update method can accept an instance of a class as the parameter.

If a post helps me I'll always eventually mark it as an answer. It's really up to you on what you choose to use. I want to extract an object, when Grid View is updating, from ODS. Blog about programming, web and IT in general Hi Mike. What I'd like to do is get a reference to the instance of the object that gets passed to the update method *before* any of its properties are set (I need to run some initialization code first). Sql Exception: Must declare the scalar variable "@Description any idea what this means and what I need to do to fix it?

Leave a Reply