The
net table control is the successor to the v1.x DataGrid, adding the ability to take interest of specific capabilities of ASP.NET observations begetter controls. Whereas the v1.x
datagrid net required a recto developer to put in black levy principles to handgrip candid operations such as paging, sorting, editing or deleting data, the GridView manage can automatically handle these operations provided its compelled data
table html outset contain supports these capabilities. The GridView also offers some functionality improvements to the DataGrid, such as the ability to limit multiple primary key fields, and some UI customization improvements, such as new soccer field types and templating options. It also exposes a modern model in the direction of folio developers to deal or rescind events.
In the above archetype, the GridView suppress reflected against the fields of the figures records returned by SqlDataSource in make to dynamically breed the columns of the grid. You can
data grid also be specific about explicit column fields to dash by way of adding DataControlField objects to the GridView's Columns collection. This allows you to stipulate methodically which columns to display and their proportional order. The following pattern demonstrates a collection of BoundField and CheckBoxField objects in the
net grid collection. Other field types that can be assigned to this accumulation are ImageField, HyperLinkField, CommandField, ButtonField, and TemplateField.