This GridView example demonstrates binding an ArrayList to a GridView.
- Column 1: BoundField column that is bound to the ProductId property of a Product object stored in the ArrayList.
- Column 2: BoundField column that is bound to the Description property of a Product object stored in the ArrayList.
- Column 3: BoundField column that is bound to the database field Price property of a Product object stored in the ArrayList.
- Column 4: TemplateField column that has a textbox bound to the QOH property of a Product object stored in the ArrayList.
- Column 5: TemplateField column that has a textbox used with the Update button to modify the QOH value for an object stored the ArrayList.
- Column 6: CommandField column with Select button. Codebehind displays the ProductId of the selected row.
- Column 7: CommandField column Edit button. Enables update of QOH property of a Product object in Column 5.