
830
|
Chapter 42: The System.Web.UI.WebControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
BoundColumn
System.Web.UI.WebControls (system.web.dll)
class
The BoundColumn class represents the default type of column used in a DataGrid control. A
BoundColumn is “bound,” or linked, to a specific field in a data source. It provides a
DataField property that specifies the field used from the data source for the column’s
content. As with all ASP.NET data binding, the “bind” is in one direction: from the
database to the output control.
Hierarchy
System.Object ➝ DataGridColumn(System.Web.UI.IStateManager) ➝ BoundColumn
Button
System.Web.UI.WebControls (system.web.dll)
disposable
class
This class represents a simple command button (also known as a push button). Button
controls always generate a postback when clicked. As with all button-like server
controls, you can set the CausesValidation property to determine whether page validation
will be performed when the button is clicked, before the button event handling code is
executed. Depending on the client browser’s support for DHTML, an invalid page
may prevent the postback from occurring and the button event handling code from
executing if CausesValidation is True.
When clicked, a Button raises a Click event followed by a Command event. The Command
event passes extra information about the ...