Note: The changes in the data made by RadGrid will be persisted per Session only. The data will be reset next time you visit the page.
Source Code & Description
r.a.d.
grid provides rich server API for inserting new data, updating existing data
and deleting data directly from the specified data source (AccessDataSource, SqlDataSource or
ObjectDataSource). Keep in mind that you will have to configure the respective data source
control (including
update/insert/delete parameters to its definition) to trigger the
automatic operations. The new ASP.NET 2.0 framework allows using
these features entirely declaratively, except the error-handling logic.
You have to set the following properties of the grid to
true to propagate automatic update/insert/delete
operation:
- AllowAutomaticUpdates
- AllowAutomaticInserts
- AllowAutomaticDeletes
What is on this example:
- You can insert a new item using the [Add new record] button in the Command row.
- You can edit an item using the Edit button (the first button in each row).
- You can delete an item, using the Delete button (at the end of each row).
Further information about the automatic data source operations and error handling supported by
r.a.d.
grid is available in these resources:
Automatic data source operations
API for controlling automatic data source operations
Error handling
Automatic operations
with SqlDataSource control
Automatic operations
with ObjectDataSource control
