System.Web.UI.WebControls Namespace ButtonColumn Class
Sets or retrieves the type of button to render in the column.
Inline |
<asp:buttoncolumn buttontype = enumValue ... > |
Script |
ButtonColumn.ButtonType = enumValue |
The property is read/write with a default value of LinkButton.
Use this property to specify whether the buttons in the column are displayed as link or push buttons.
Clicking on the command buttons in the column raises the ItemCommand event. You can programmatically control the action performed when the command button is clicked by providing an event handler for the ItemCommand event.
The following example demonstrates how to set the ButtonType property of a ButtonColumn at design time, and how to dynamically set the style properties of the buttons in the column at run time.
Show me
ButtonColumn Members Adding Button Columns to a DataGrid Control