An Overview of Editing Functions

The way you enable editing for the DataGrid is similar to the method for the DataList, which is why we are combining them in this chapter. In this section, I want to give you a high-level picture of how editing works. I'll be mentioning certain attributes and events that might not make sense to you right now, but they'll become clear to you later in the chapter when we start building and dissecting the example code.

When editing is enabled for a DataGrid, you must have an EditCommandColumn. This is nothing more than a container column for an object that the users click to go into edit mode. The DataList also has a way for users to put it into edit mode, but you have to create the buttons manually using either ...

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.