Aspx gridview updating

Rated 3.93/5 based on 527 customer reviews

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising.If you continue browsing the site, you agree to the use of cookies on this website. Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising.Let's consolidate our understanding with an example.We will use SQL Server 2000 database for demonstration purpose.This saves you a few lines of code (configuring the triggers) but will also help if you dynamically add controls to your Grid View that will also trigger postback events on your page. I am not able to get the changed values that i enter in the grid view .You can preview the data returned by this new data source by clicking Test Query button. After the configuring Sql Data Source using above mentioned steps, drag and drop the Grid View control onto the page.Choose previously configured Sql Data Source from Smart tag as seen below.

aspx gridview updating-22

aspx gridview updating-31

aspx gridview updating-77

aspx gridview updating-5

No matter what is put in the other fields, it acts as if they are null.

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.

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.

Leave a Reply