Columns are set up as before with bindings to fields within
CHAPTER 6 ?– USING SERVER CONTROLS IN ASP.NET AJAX 119
the dataset and with inline editing capability that allow these fields to be changed.
Because the grid is bound, changes to the underlying dataset trigger a refresh to the
grid and as such an update of the content via an event that fires when the bound data
changes. Really, the only trace of ASP.NET AJAX visible here is the
element.
The GridView control also has some properties defined for aesthetics, such as the
AlternatingRowStyle-CssClass property, and defines its content using the tag.
Also, you automatically get sorting and paging capability by setting the AllowPaging and
AllowSorting properties of the GridView control to true.
The tag defines actions such as Edit and Delete, whereas the
tag defines data fields that are bound to a data source. Lastly, the
tag, as the name implies, defines the check box for the completed
tasks. Before leaving the tag, let??™s make a very quick and easy addition to this to
be able to delete tasks.
Pages:
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196