Summary

In this chapter you learned how to enable editing using the DataGrid and DataList controls. These built-in features allow users to edit, select, or delete data in a DataGrid in a very simple and logical manner, without a lot of complicated code. Specifically in this chapter you learned:

  • Enabling editing using the DataGrid and DataList

  • Changing certain items using the ItemCreated event

  • Enabling item selection using the DataGrid and DataList

We illustrated how you enter these two controls into different modes (edit vs normal), and how you handle certain events to gain programmatic access to both data and child controls found within said control. The hard part is over now; you know the basics of both these controls. Now you can take this basic ...

Get Programming Data-Driven Web Applications with ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.