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 knowledge, and start adding even more functionality such as rendering populated DropDownList controls within cells in edit mode for the user to select from as seen in the Tip section. The possibilities are nearly endless.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.93.12