Asp net objectdatasource updating event

02-Nov-2015 10:59

The good news is with a little extra code, we can have our custom objects act just like fancy Data Sets.First thing you’ll need is a class to represent a row in the Grid View.

We need to implement several properties Containers Events Schedule View Container Rad Scheduler declaration and control template - in the template I have Rad Ajax Manager Proxy and Rad Ajax Manager with Loading panel in the template(master page file).The Grid View control is one of the great time savers of ASP. Sorting, paging, editing, deleting, and even AJAX (set Enable Sorting And Paging Callbacks to True) is included out of the box.The Object Data Source is the other half of the magic, connecting the Grid View to the data and managing any filter controls.When using Data Sets and Table Adapters, everything is a dream, but when using your own custom objects the wizards and property pages act like you don’t exist.In this article I will show you how you can use the Object Data Source with the Grid View control to do editing, updating, deleting and adding new records.There are several ways to perform these operations, I am using the simplest approach.

The project files are also attached with this article so please feel free to download them.

As you can see in the image above our Grid View contains five columns.

User ID, First Name and Last Name are template columns and Edit and Delete columns are Command Columns which are added using smart tag option (You can view the smart tag if you right click on the Grid View control).

In this blog post I am showing how to create a custom Rad Scheduler control that can be used to insert/update and delete content items.

Generally the implementation is related to Events provider and IEvent objects.

All data for the items managed through this control is persisted by the default Events provider.