Updating gridview

Suppose we’ve to work on Customer table having Category ID as foreign key.

Next Select your database and Set “Save Entity connection string in Web.config as” option true giving name Sample Entities.

Our first demo will look at how to create an editable Grid View whose data comes from a Sql Data Source.

If you are not familiar of binding the Grid View the way then I would suggest looking at my previous example first before you proceed to this example.

NET 2.0, the Grid View control serves as a much more functional and feature-rich choice.(And even Mom seems a little equivocal about the whole thing.) The command window is great for entering data, and perfectly fine for displaying small chunks of data.

Well for starters, the console window uses non-proportionally spaced fonts (that is, the lowercase ).

this value is to be updated in the table thanks make another page having same fields in it and give a edit link button in grid view when user will click on edit pass the corresponding id in edit page make the necessary chabges and on clicking save fire the update query thanks......

This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests.

NET 2.0 Basics section of the Wrox Programmer to Programmer discussions.

In my previous tutorials, I’d explained about how to bind data to gridview, how to get connection string, gridview inline insert update delete, difference between executereader executenonquery executescalar and other more cracking tutorials on Grid View, Asp.net, SQL Server here.

Now here in this tutorial, I’ll explain how to show data in gridview and then insert update delete gridview records (perform CRUD operation) in using c# as well as with example code.