dating landing page templates Aspx gridview updating

This way you can get a chance to inspect the input values just before the event is fired and evaluate the returned results just after the event is fired.

You can see most of the articles and tutorials in many websites teach you the way to bind a Grid View control to the database with some Data Source controls such as SQLData Source, Object Data Source, Access Data Source and even XMLDatasource.

NET 2.0, Microsoft has introduced Grid View control which too displays tabular data in a grid.

With Grid View control, you can display, edit, and delete data directly from different kinds of data sources with out writing any single piece of code Grid View control automates paging, sorting and database operations like updating, deletion and selection of data with out writing single piece of code.

You can also customize the look and feel of each page by setting various properties like Pager Style property and using Pager Template to change look and style of buttons and pages.

You can see properties of Grid View1 in below listing Another striking difference between Data Grid and Grid View is in the event model.

Grid View supports both pre-operation and post-operation events.For example: when ever you update a row Row Updating is fired before the update and Row Updated events after the Grid View automatically updated a row.This is possible with new property Data Source ID which allows performing paging, sorting and all database operations directly with the Data Source.For example, Grid View can directly update, delete and perform paging, sorting with a sqldatasource with out any custom code.On contrary, Data Grid can declaratively bind a Data Source control but it can do it for only displaying data.All other database operations have to be coded manually.