Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, tutorials, and more.

Editing Data

You have seen how to use a GridView control
to fetch and browse data. The following set of exercises shows you how
to modify data and create new rows.

Updating Rows Through a GridView Control

By using the GridView control, you can
add hyperlinks to the grid to indicate that a command should be
performed. You can add your own custom hyperlinks and commands, but
Visual Studio 2008 supplies some predefined hyperlinks for
inserting, updating, and deleting data. In the following exercise,
you will add update functionality to the
GridView control by adding an
Edit hyperlink to the grid. When the user
clicks the Edit hyperlink, the row changes into
a set of TextBox controls. The user can save the changes or discard them. This is achieved by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.